aboutsummaryrefslogtreecommitdiffstats
path: root/util/generic/string_ut.cpp
diff options
context:
space:
mode:
authorqwerty <qwerty@yandex-team.ru>2022-02-10 16:49:24 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:49:24 +0300
commit34e37ee57f5837a8da2fdfaccaac9bbe6c7f02ba (patch)
treec9e2dc7251a6743c4352ec4a4c717b18a1bd4da7 /util/generic/string_ut.cpp
parent19bd45eb7775ffded0c62ab05d10b7326198aaa6 (diff)
downloadydb-34e37ee57f5837a8da2fdfaccaac9bbe6c7f02ba.tar.gz
Restoring authorship annotation for <qwerty@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'util/generic/string_ut.cpp')
-rw-r--r--util/generic/string_ut.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/util/generic/string_ut.cpp b/util/generic/string_ut.cpp
index ac82e9091d..df4f95afe9 100644
--- a/util/generic/string_ut.cpp
+++ b/util/generic/string_ut.cpp
@@ -815,13 +815,13 @@ public:
UNIT_TEST_SUITE_END();
private:
- void TestDecodingMethods() {
+ void TestDecodingMethods() {
UNIT_ASSERT(TUtf16String::FromAscii("").empty());
UNIT_ASSERT(TUtf16String::FromAscii("abc") == ASCIIToWide("abc"));
const char* text = "123kx83abcd ej)#$%ddja&%J&";
TUtf16String wtext = ASCIIToWide(text);
-
+
UNIT_ASSERT(wtext == TUtf16String::FromAscii(text));
TString strtext(text);
@@ -829,7 +829,7 @@ private:
TStringBuf strbuftext(text);
UNIT_ASSERT(wtext == TUtf16String::FromAscii(strbuftext));
-
+
UNIT_ASSERT(wtext.substr(5) == TUtf16String::FromAscii(text + 5));
const wchar16 wideCyrillicAlphabet[] = {
@@ -859,12 +859,12 @@ private:
UNIT_ASSERT(s1 == wtext);
// append
-
+
TUtf16String s2;
TUtf16String testAppend = strWide;
s2.AppendUtf8(strUtf8);
UNIT_ASSERT(testAppend == s2);
-
+
testAppend += ' ';
s2.AppendAscii(" ");
UNIT_ASSERT(testAppend == s2);