no tests for unicode codepoints vs. utf8-encoded characters #592
Labels
enhancement
An enhancement to the tooling or structure of the suite (as opposed to a new test).
missing test
A request to add a test to the suite that is currently not covered elsewhere.
no time to create a PR right now, so dropping this here to come back to, and for discussion in case for some reason this is controversial:
schema:
{ "maxLength": 3 }
passing test:
"ಠ_ಠ"
failing test:
"ಠ__ಠ"
In unicode,
ಠ
is 0x0CA0 (\x{0ca0}), and is utf8-encoded to 3 bytes: 0xE0 0xB2 0xA0 (\x{e0}\x{b2}\x{a0}).(and also a similar test for minLength)
The text was updated successfully, but these errors were encountered: