diff options
author | sobols <sobols@yandex-team.ru> | 2022-02-10 16:47:08 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:47:08 +0300 |
commit | 03335cb18337a0ef51966452a66a69b01abea218 (patch) | |
tree | b83306b6e37edeea782e9eed673d89286c4fef35 /util/generic/string_ut.cpp | |
parent | 09961b69c61f471ddd594e0fd877df62a8021562 (diff) | |
download | ydb-03335cb18337a0ef51966452a66a69b01abea218.tar.gz |
Restoring authorship annotation for <sobols@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'util/generic/string_ut.cpp')
-rw-r--r-- | util/generic/string_ut.cpp | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/util/generic/string_ut.cpp b/util/generic/string_ut.cpp index 61855f9b0b..ac82e9091d 100644 --- a/util/generic/string_ut.cpp +++ b/util/generic/string_ut.cpp @@ -811,7 +811,7 @@ public: UNIT_TEST(TestDecodingMethods); UNIT_TEST(TestIterators); UNIT_TEST(TestReverseIterators); - UNIT_TEST(TestStringLiterals); + UNIT_TEST(TestStringLiterals); UNIT_TEST_SUITE_END(); private: @@ -895,14 +895,14 @@ private: str = hello; UNIT_ASSERT(str == hello); } - - void TestStringLiterals() { - TUtf16String s1 = u"hello"; - UNIT_ASSERT_VALUES_EQUAL(s1, TUtf16String::FromAscii("hello")); - - TUtf16String s2 = u"привет"; - UNIT_ASSERT_VALUES_EQUAL(s2, TUtf16String::FromUtf8("привет")); - } + + void TestStringLiterals() { + TUtf16String s1 = u"hello"; + UNIT_ASSERT_VALUES_EQUAL(s1, TUtf16String::FromAscii("hello")); + + TUtf16String s2 = u"привет"; + UNIT_ASSERT_VALUES_EQUAL(s2, TUtf16String::FromUtf8("привет")); + } }; UNIT_TEST_SUITE_REGISTRATION(TWideStringTest); @@ -936,7 +936,7 @@ public: UNIT_TEST(TestDecodingMethodsMixedStr); UNIT_TEST(TestIterators); UNIT_TEST(TestReverseIterators); - UNIT_TEST(TestStringLiterals); + UNIT_TEST(TestStringLiterals); UNIT_TEST_SUITE_END(); private: @@ -1093,14 +1093,14 @@ private: str = hello; UNIT_ASSERT(str == hello); } - - void TestStringLiterals() { - TUtf32String s1 = U"hello"; - UNIT_ASSERT_VALUES_EQUAL(s1, TUtf32String::FromAscii("hello")); - - TUtf32String s2 = U"привет"; - UNIT_ASSERT_VALUES_EQUAL(s2, TUtf32String::FromUtf8("привет")); - } + + void TestStringLiterals() { + TUtf32String s1 = U"hello"; + UNIT_ASSERT_VALUES_EQUAL(s1, TUtf32String::FromAscii("hello")); + + TUtf32String s2 = U"привет"; + UNIT_ASSERT_VALUES_EQUAL(s2, TUtf32String::FromUtf8("привет")); + } }; UNIT_TEST_SUITE_REGISTRATION(TUtf32StringTest); |