summaryrefslogtreecommitdiff
path: root/Tests/AK
diff options
context:
space:
mode:
authorTimothy Flynn <trflynn89@pm.me>2023-02-14 13:56:19 -0500
committerLinus Groh <mail@linusgroh.de>2023-02-15 12:36:47 +0100
commit5cbf05465183216a3ae30c2d434375e361df5313 (patch)
treeb7b955474f67f82fe0f866ba3bb6b71b1cbb8add /Tests/AK
parent6e7a6e2d026aef77395518593b3417a8e6b6e6a7 (diff)
downloadserenity-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/AK')
-rw-r--r--Tests/AK/TestString.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Tests/AK/TestString.cpp b/Tests/AK/TestString.cpp
index 38799ddb61..6c40eba488 100644
--- a/Tests/AK/TestString.cpp
+++ b/Tests/AK/TestString.cpp
@@ -211,7 +211,7 @@ TEST_CASE(to_titlecase)
{
auto string = MUST(String::from_utf8("f\"oo\" b'ar'"sv));
auto result = MUST(string.to_titlecase());
- EXPECT_EQ(result, "F\"Oo\" B'Ar'"sv);
+ EXPECT_EQ(result, "F\"Oo\" B'ar'"sv);
}
{
auto string = MUST(String::from_utf8("123dollars"sv));