summaryrefslogtreecommitdiff
path: root/Tests/AK/TestUtf16.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Tests/AK/TestUtf16.cpp')
-rw-r--r--Tests/AK/TestUtf16.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Tests/AK/TestUtf16.cpp b/Tests/AK/TestUtf16.cpp
index ada7196bc2..302e5357e2 100644
--- a/Tests/AK/TestUtf16.cpp
+++ b/Tests/AK/TestUtf16.cpp
@@ -53,7 +53,7 @@ TEST_CASE(decode_utf8)
TEST_CASE(encode_utf8)
{
{
- auto utf8_string = MUST(String::from_utf8("Привет, мир! 😀 γειά σου κόσμος こんにちは世界"sv));
+ auto utf8_string = MUST("Привет, мир! 😀 γειά σου κόσμος こんにちは世界"_string);
auto string = MUST(AK::utf8_to_utf16(utf8_string));
Utf16View view { string };
EXPECT_EQ(MUST(view.to_utf8(Utf16View::AllowInvalidCodeUnits::Yes)), utf8_string);