diff options
author | Timothy Flynn <trflynn89@pm.me> | 2021-07-27 17:47:09 -0400 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-07-28 23:42:29 +0200 |
commit | c45a014645649380e4f0928fba52a07cc1a147a8 (patch) | |
tree | 421188970149a9a6d8783030703d1520b7f4e50d /Tests/LibUnicode | |
parent | 38adfd8874354a077f359de5fa272dd56bc78984 (diff) | |
download | serenity-c45a014645649380e4f0928fba52a07cc1a147a8.zip |
LibUnicode: Check property list when deciding if a code point is cased
Diffstat (limited to 'Tests/LibUnicode')
-rw-r--r-- | Tests/LibUnicode/TestUnicodeCharacterTypes.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Tests/LibUnicode/TestUnicodeCharacterTypes.cpp b/Tests/LibUnicode/TestUnicodeCharacterTypes.cpp index 7badcf9e86..ce57b67ac7 100644 --- a/Tests/LibUnicode/TestUnicodeCharacterTypes.cpp +++ b/Tests/LibUnicode/TestUnicodeCharacterTypes.cpp @@ -110,6 +110,14 @@ TEST_CASE(to_unicode_lowercase_special_casing_sigma) result = Unicode::to_unicode_lowercase_full("A\u03A3"sv); EXPECT_EQ(result, "a\u03C2"); + // Sigma preceded by FEMININE ORDINAL INDICATOR + result = Unicode::to_unicode_lowercase_full("\u00AA\u03A3"sv); + EXPECT_EQ(result, "\u00AA\u03C2"); + + // Sigma preceded by ROMAN NUMERAL ONE + result = Unicode::to_unicode_lowercase_full("\u2160\u03A3"sv); + EXPECT_EQ(result, "\u2170\u03C2"); + // Sigma preceded by A and MONGOLIAN VOWEL SEPARATOR result = Unicode::to_unicode_lowercase_full("A\u180E\u03A3"sv); EXPECT_EQ(result, "a\u180E\u03C2"); |