diff options
author | kerzum <kerzum@yandex-team.ru> | 2022-02-10 16:49:33 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:49:33 +0300 |
commit | 47a7e7b29636bfb2deb1df5f92363b3c75229c95 (patch) | |
tree | 5d5cb817648f650d76cf1076100726fd9b8448e8 /util/generic/string_ut.cpp | |
parent | 9a7232babfd763ccfe827bc70e82e0f50cfd8276 (diff) | |
download | ydb-47a7e7b29636bfb2deb1df5f92363b3c75229c95.tar.gz |
Restoring authorship annotation for <kerzum@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'util/generic/string_ut.cpp')
-rw-r--r-- | util/generic/string_ut.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/util/generic/string_ut.cpp b/util/generic/string_ut.cpp index b9099371b0..ac82e9091d 100644 --- a/util/generic/string_ut.cpp +++ b/util/generic/string_ut.cpp @@ -23,9 +23,9 @@ static_assert(sizeof(TString) == sizeof(const char*), "expect sizeof(TString) == class TStringTestZero: public TTestBase { UNIT_TEST_SUITE(TStringTestZero); UNIT_TEST(TestZero); - UNIT_TEST_SUITE_END(); + UNIT_TEST_SUITE_END(); -public: +public: void TestZero() { const char data[] = "abc\0def\0"; TString s(data, sizeof(data)); @@ -33,7 +33,7 @@ public: UNIT_ASSERT(s.StartsWith(s)); UNIT_ASSERT(s.EndsWith(s)); UNIT_ASSERT(s.Contains('\0')); - + const char raw_def[] = "def"; const char raw_zero[] = "\0"; TString def(raw_def, sizeof(raw_def) - 1); @@ -52,7 +52,7 @@ public: UNIT_ASSERT(s != copy); copy.replace(copy.size() - 1, 1, "\0", 0, 1); UNIT_ASSERT(s == copy); - + TString prefix(data, 5); UNIT_ASSERT(s.StartsWith(prefix)); UNIT_ASSERT(s != prefix); @@ -60,7 +60,7 @@ public: UNIT_ASSERT(s > s.data()); UNIT_ASSERT(s == TString(s.data(), s.size())); UNIT_ASSERT(data < s); - + s.remove(5); UNIT_ASSERT(s == prefix); } |