-
Notifications
You must be signed in to change notification settings - Fork 34
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, benchmarks & fixes to UTF-8 validation #752
Conversation
Codecov Report
@@ Coverage Diff @@
## master #752 +/- ##
=======================================
Coverage 99.26% 99.26%
=======================================
Files 74 74
Lines 11439 11441 +2
=======================================
+ Hits 11355 11357 +2
Misses 84 84
Flags with carried forward coverage won't be shown. Click here to find out more.
|
|
||
namespace fizzy::test | ||
{ | ||
const std::string_view utf8_demo = |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Isn't string_view a reference?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is, but reference to a literal is fine.
@@ -0,0 +1,222 @@ | |||
// The content of the "UTF-8 encoded sample plain-text file" by Markus Kuhn. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you have a link?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I could not find the original file, but the content has license id and link to author's home page. Many projects uses this file, including:
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually, I have found it at https://www.cl.cam.ac.uk/~mgk25/ucs/examples/UTF-8-demo.txt.
@@ -320,7 +320,7 @@ jobs: | |||
- run: | |||
name: "Run codespell" | |||
command: | | |||
codespell --quiet-level=4 -I .codespell-whitelist | |||
codespell --quiet-level=4 --ignore-words .codespell-whitelist --skip 'utf8_demo.cpp' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What does --ignore-words
do?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's expanded -I
option.
Includes 32-bit architecture and dead store fixes.
Also added "UTF-8 encoded sample plain-text file" by Markus Kuhn. Used to testing and benchmarking.