From c9f71d5a961a23207d81bf63a13225754b4ffff8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ferenc=20G=C3=A9czi?= Date: Tue, 6 Feb 2024 00:00:05 +0000 Subject: [PATCH] [base][test]: Use `u16string_view` instead of `char16_t[]` MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Ferenc Géczi --- base/base_tests/string_utils_test.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/base/base_tests/string_utils_test.cpp b/base/base_tests/string_utils_test.cpp index 814aee968a..9df1b5d002 100644 --- a/base/base_tests/string_utils_test.cpp +++ b/base/base_tests/string_utils_test.cpp @@ -876,8 +876,8 @@ UNIT_TEST(UniStringToUtf8) UNIT_TEST(UniStringToUtf16) { std::string_view constexpr utf8sv = "Текст"; - static char16_t constexpr utf16[] = u"Текст"; - TEST_EQUAL(utf16, strings::ToUtf16(utf8sv), ()); + static std::u16string_view constexpr utf16sv = u"Текст"; + TEST_EQUAL(utf16sv, strings::ToUtf16(utf8sv), ()); } UNIT_TEST(StartsWith)