diff options
author | Timothy Flynn <trflynn89@pm.me> | 2023-02-14 13:56:19 -0500 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2023-02-15 12:36:47 +0100 |
commit | 5cbf05465183216a3ae30c2d434375e361df5313 (patch) | |
tree | b7b955474f67f82fe0f866ba3bb6b71b1cbb8add /Tests/LibUnicode | |
parent | 6e7a6e2d026aef77395518593b3417a8e6b6e6a7 (diff) | |
download | serenity-5cbf05465183216a3ae30c2d434375e361df5313.zip |
LibUnicode: Fix typos causing text segmentation on mid-word punctuation
For example the words "can't" and "32.3" should not have boundaries
detected on the "'" and "." code points, respectively.
The String test cases fixed here are because "b'ar" is now considered
one word.
Diffstat (limited to 'Tests/LibUnicode')
-rw-r--r-- | Tests/LibUnicode/TestUnicodeCharacterTypes.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Tests/LibUnicode/TestUnicodeCharacterTypes.cpp b/Tests/LibUnicode/TestUnicodeCharacterTypes.cpp index cc13963e27..211b4369df 100644 --- a/Tests/LibUnicode/TestUnicodeCharacterTypes.cpp +++ b/Tests/LibUnicode/TestUnicodeCharacterTypes.cpp @@ -93,7 +93,7 @@ TEST_CASE(to_unicode_titlecase) EXPECT_EQ(MUST(Unicode::to_unicode_titlecase_full("foo bar baz"sv)), "Foo Bar Baz"sv); EXPECT_EQ(MUST(Unicode::to_unicode_titlecase_full("foo \n \r bar \t baz"sv)), "Foo \n \r Bar \t Baz"sv); - EXPECT_EQ(MUST(Unicode::to_unicode_titlecase_full("f\"oo\" b'ar'"sv)), "F\"Oo\" B'Ar'"sv); + EXPECT_EQ(MUST(Unicode::to_unicode_titlecase_full("f\"oo\" b'ar'"sv)), "F\"Oo\" B'ar'"sv); EXPECT_EQ(MUST(Unicode::to_unicode_titlecase_full("123dollars"sv)), "123Dollars"sv); } |