mirror of
https://github.com/RGBCube/serenity
synced 2025-05-14 11:44:58 +00:00
LibUnicode: Handle code points that are both cased and case-ignorable
Apparently, some code points fit both categories, for example U+0345 (COMBINING GREEK YPOGEGRAMMENI). Handle this fact when determining if a code point is a final code point in a string.
This commit is contained in:
parent
dff156b7c6
commit
c4bfda7f7f
2 changed files with 5 additions and 1 deletions
|
@ -118,6 +118,10 @@ TEST_CASE(to_unicode_lowercase_special_casing_sigma)
|
|||
result = Unicode::to_unicode_lowercase_full("\u2160\u03A3"sv);
|
||||
EXPECT_EQ(result, "\u2170\u03C2");
|
||||
|
||||
// Sigma preceded by COMBINING GREEK YPOGEGRAMMENI
|
||||
result = Unicode::to_unicode_lowercase_full("\u0345\u03A3"sv);
|
||||
EXPECT_EQ(result, "\u0345\u03C3");
|
||||
|
||||
// Sigma preceded by A and FULL STOP
|
||||
result = Unicode::to_unicode_lowercase_full("A.\u03A3"sv);
|
||||
EXPECT_EQ(result, "a.\u03C2");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue