diff options
author | vkap <vkap@yandex-team.ru> | 2022-02-10 16:52:03 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:52:03 +0300 |
commit | 2293cfbde84d06fd05df2d8b5e84a0f58c6b827e (patch) | |
tree | a6bcfcb3e625cd4eef7032ce2645f0a8486b482a /util/string/strip_ut.cpp | |
parent | 578d2b4e4ceeab5fd36f435815a15f2359bf21a0 (diff) | |
download | ydb-2293cfbde84d06fd05df2d8b5e84a0f58c6b827e.tar.gz |
Restoring authorship annotation for <vkap@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'util/string/strip_ut.cpp')
-rw-r--r-- | util/string/strip_ut.cpp | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/util/string/strip_ut.cpp b/util/string/strip_ut.cpp index d1029d1498..bfc3c7c80a 100644 --- a/util/string/strip_ut.cpp +++ b/util/string/strip_ut.cpp @@ -46,8 +46,8 @@ Y_UNIT_TEST_SUITE(TStripStringTest) { Y_UNIT_TEST(TestCustomStrip) { struct TTest { - const char* Str; - const char* Result; + const char* Str; + const char* Result; }; static const TTest tests[] = { {"//012//", "012"}, @@ -55,14 +55,14 @@ Y_UNIT_TEST_SUITE(TStripStringTest) { {"012", "012"}, {"012//", "012"}, }; - + for (auto test : tests) { - UNIT_ASSERT_EQUAL( + UNIT_ASSERT_EQUAL( StripString(TString(test.Str), EqualsStripAdapter('/')), test.Result); - }; - } - + }; + } + Y_UNIT_TEST(TestCustomStripLeftRight) { struct TTest { const char* Str; @@ -88,11 +88,11 @@ Y_UNIT_TEST_SUITE(TStripStringTest) { Y_UNIT_TEST(TestNullStringStrip) { TStringBuf nullString(nullptr, nullptr); - UNIT_ASSERT_EQUAL( + UNIT_ASSERT_EQUAL( StripString(nullString), TString()); - } - + } + Y_UNIT_TEST(TestWtrokaStrip) { UNIT_ASSERT_EQUAL(StripString(TWtringBuf(u" abc ")), u"abc"); UNIT_ASSERT_EQUAL(StripStringLeft(TWtringBuf(u" abc ")), u"abc "); @@ -100,13 +100,13 @@ Y_UNIT_TEST_SUITE(TStripStringTest) { } Y_UNIT_TEST(TestWtrokaCustomStrip) { - UNIT_ASSERT_EQUAL( + UNIT_ASSERT_EQUAL( StripString( TWtringBuf(u"/abc/"), EqualsStripAdapter(u'/')), u"abc"); - } - + } + Y_UNIT_TEST(TestCollapse) { TString s; Collapse(TString(" 123 456 "), s); |