Skip to content

string: speed up, fix and test impl_utf8_to_utf32#26109

Merged
spytheman merged 5 commits into
vlang:masterfrom
enghitalo:speedup-fix-and-test/impl_utf8_to_utf32
Dec 25, 2025
Merged

string: speed up, fix and test impl_utf8_to_utf32#26109
spytheman merged 5 commits into
vlang:masterfrom
enghitalo:speedup-fix-and-test/impl_utf8_to_utf32

Conversation

@enghitalo

Copy link
Copy Markdown
Contributor

No description provided.

@enghitalo

enghitalo commented Dec 25, 2025

Copy link
Copy Markdown
Contributor Author

@spytheman CI fails seems to be not related. What do you think?

Comment thread vlib/builtin/utf8_test.v Outdated
Comment thread vlib/builtin/utf8_test.v Outdated

@spytheman spytheman left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Excellent work.

Can you please just tweak the tests, to use a string representation of the original where possible, followed by .bytes()?
It makes it a lot more obvious, whether the test is correct or not, which in turn makes maintenance easier.

@spytheman

Copy link
Copy Markdown
Contributor

(and yes, the CI failure seems unrelated to this change)

@spytheman spytheman merged commit 9dd8994 into vlang:master Dec 25, 2025
83 checks passed
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.

2 participants