Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test(buffer): ensure emojis are rendered #1258

Merged
merged 2 commits into from
Aug 2, 2024

Conversation

EdJoPaTo
Copy link
Contributor

They are not rendered as expected but not completely wrong either so that's a win?

They are not rendered as expected but not completely wrong either so thats a win?
Copy link

codecov bot commented Jul 31, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 94.5%. Comparing base (b344f95) to head (62925e6).
Report is 4 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##            main   #1258      /-   ##
=======================================
- Coverage   94.6%   94.5%   -0.1%     
=======================================
  Files         65      65             
  Lines      15407   15389     -18     
=======================================
- Hits       14576   14554     -22     
- Misses       831     835       4     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@joshka
Copy link
Member

joshka commented Aug 2, 2024

Just to be clear - these are characterization tests right? The purpose is to document existing behavior even if it's wrong(-ish)?

@EdJoPaTo
Copy link
Contributor Author

EdJoPaTo commented Aug 2, 2024

Yeah. I suspected my change in #1226 might have broken something because of the way more complex emojis are joined together so I wanted to make sure it still renders them.

src/buffer/buffer.rs Outdated Show resolved Hide resolved
@EdJoPaTo EdJoPaTo merged commit 32d0695 into ratatui:main Aug 2, 2024
34 checks passed
@EdJoPaTo EdJoPaTo deleted the buffer-renders-emojis branch August 2, 2024 09:06
Copy link

github-actions bot commented Aug 2, 2024

🐰Bencher

ReportFri, August 2, 2024 at 09:14:04 UTC
ProjectRatatui
Branch1258/merge
Testbedubuntu-latest

⚠️ WARNING: The following Measure does not have a Threshold. Without a Threshold, no Alerts will ever be generated!

  • Latency (latency)

Click here to create a new Threshold
For more information, see the Threshold documentation.
To only post results if a Threshold exists, set the --ci-only-thresholds CLI flag.

Click to view all benchmark results
BenchmarkLatencyLatency Results
nanoseconds (ns)
barchart/render/2048➖ (view plot)175,860.00
barchart/render/256➖ (view plot)109,570.00
barchart/render/64➖ (view plot)71,187.00
barchart/render_grouped/2048➖ (view plot)321,960.00
barchart/render_grouped/256➖ (view plot)120,430.00
barchart/render_grouped/64➖ (view plot)108,830.00
barchart/render_horizontal/2048➖ (view plot)157,350.00
barchart/render_horizontal/256➖ (view plot)73,891.00
barchart/render_horizontal/64➖ (view plot)67,997.00
block/render_all_feature/100x50➖ (view plot)8,670.20
block/render_all_feature/200x50➖ (view plot)15,415.00
block/render_all_feature/256x256➖ (view plot)70,463.00
block/render_empty/100x50➖ (view plot)4,481.40
block/render_empty/200x50➖ (view plot)8,973.00
block/render_empty/256x256➖ (view plot)58,156.00
line_render/Center/0➖ (view plot)2.79
line_render/Center/10➖ (view plot)400.43
line_render/Center/3➖ (view plot)217.19
line_render/Center/4➖ (view plot)239.12
line_render/Center/42➖ (view plot)492.56
line_render/Center/6➖ (view plot)249.21
line_render/Center/7➖ (view plot)280.90
line_render/Left/0➖ (view plot)2.78
line_render/Left/10➖ (view plot)352.59
line_render/Left/3➖ (view plot)145.42
line_render/Left/4➖ (view plot)153.63
line_render/Left/42➖ (view plot)491.41
line_render/Left/6➖ (view plot)236.08
line_render/Left/7➖ (view plot)244.15
line_render/Right/0➖ (view plot)2.78
line_render/Right/10➖ (view plot)356.72
line_render/Right/3➖ (view plot)218.68
line_render/Right/4➖ (view plot)253.90
line_render/Right/42➖ (view plot)494.18
line_render/Right/6➖ (view plot)331.09
line_render/Right/7➖ (view plot)363.19
list/render/16384➖ (view plot)1,152,900.00
list/render/2048➖ (view plot)253,980.00
list/render/64➖ (view plot)133,280.00
list/render_scroll_half/16384➖ (view plot)1,149,300.00
list/render_scroll_half/2048➖ (view plot)259,460.00
list/render_scroll_half/64➖ (view plot)90,186.00
paragraph/new/2048➖ (view plot)249,440.00
paragraph/new/64➖ (view plot)6,073.20
paragraph/new/65535➖ (view plot)14,391,000.00
paragraph/render/2048➖ (view plot)445,660.00
paragraph/render/64➖ (view plot)406,340.00
paragraph/render/65535➖ (view plot)1,450,200.00
paragraph/render_scroll_full/2048➖ (view plot)408,060.00
paragraph/render_scroll_full/64➖ (view plot)430,720.00
paragraph/render_scroll_full/65535➖ (view plot)1,404,600.00
paragraph/render_scroll_half/2048➖ (view plot)406,280.00
paragraph/render_scroll_half/64➖ (view plot)434,520.00
paragraph/render_scroll_half/65535➖ (view plot)1,412,500.00
paragraph/render_wrap/2048➖ (view plot)233,670.00
paragraph/render_wrap/64➖ (view plot)190,350.00
paragraph/render_wrap/65535➖ (view plot)1,220,900.00
paragraph/render_wrap_scroll_full/2048➖ (view plot)235,700.00
paragraph/render_wrap_scroll_full/64➖ (view plot)191,010.00
paragraph/render_wrap_scroll_full/65535➖ (view plot)1,214,600.00
sparkline/render/2048➖ (view plot)113,490.00
sparkline/render/256➖ (view plot)113,070.00
sparkline/render/64➖ (view plot)35,704.00

Bencher - Continuous Benchmarking
View Public Perf Page
Docs | Repo | Chat | Help

joshka pushed a commit to erak/ratatui that referenced this pull request Oct 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants