diff options
author | Vlad Yaroslavlev <vladon@vladon.com> | 2022-02-10 16:46:25 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:46:25 +0300 |
commit | 344ea37b4a345701ab0e67de2266a1c1bd7baf2d (patch) | |
tree | 1a2c5ffcf89eb53ecd79dbc9bc0a195c27404d0c /util/string/strip_ut.cpp | |
parent | 706b83ed7de5a473436620367af31fc0ceecde07 (diff) | |
download | ydb-344ea37b4a345701ab0e67de2266a1c1bd7baf2d.tar.gz |
Restoring authorship annotation for Vlad Yaroslavlev <vladon@vladon.com>. Commit 2 of 2.
Diffstat (limited to 'util/string/strip_ut.cpp')
-rw-r--r-- | util/string/strip_ut.cpp | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/util/string/strip_ut.cpp b/util/string/strip_ut.cpp index 83bfe73a87..d1029d1498 100644 --- a/util/string/strip_ut.cpp +++ b/util/string/strip_ut.cpp @@ -27,9 +27,9 @@ Y_UNIT_TEST_SUITE(TStripStringTest) { }; for (const auto& test : tests) { - TString inputStr(test.Str); + TString inputStr(test.Str); - TString s; + TString s; Strip(inputStr, s); UNIT_ASSERT_EQUAL(s, test.StripRes); @@ -58,7 +58,7 @@ Y_UNIT_TEST_SUITE(TStripStringTest) { for (auto test : tests) { UNIT_ASSERT_EQUAL( - StripString(TString(test.Str), EqualsStripAdapter('/')), + StripString(TString(test.Str), EqualsStripAdapter('/')), test.Result); }; } @@ -78,10 +78,10 @@ Y_UNIT_TEST_SUITE(TStripStringTest) { for (const auto& test : tests) { UNIT_ASSERT_EQUAL( - StripStringLeft(TString(test.Str), EqualsStripAdapter('/')), + StripStringLeft(TString(test.Str), EqualsStripAdapter('/')), test.ResultLeft); UNIT_ASSERT_EQUAL( - StripStringRight(TString(test.Str), EqualsStripAdapter('/')), + StripStringRight(TString(test.Str), EqualsStripAdapter('/')), test.ResultRight); }; } @@ -90,7 +90,7 @@ Y_UNIT_TEST_SUITE(TStripStringTest) { TStringBuf nullString(nullptr, nullptr); UNIT_ASSERT_EQUAL( StripString(nullString), - TString()); + TString()); } Y_UNIT_TEST(TestWtrokaStrip) { @@ -108,14 +108,14 @@ Y_UNIT_TEST_SUITE(TStripStringTest) { } Y_UNIT_TEST(TestCollapse) { - TString s; - Collapse(TString(" 123 456 "), s); + TString s; + Collapse(TString(" 123 456 "), s); UNIT_ASSERT(s == " 123 456 "); - Collapse(TString(" 123 456 "), s, 10); + Collapse(TString(" 123 456 "), s, 10); UNIT_ASSERT(s == " 123 456 "); - s = TString(" a b c "); - TString s2 = s; + s = TString(" a b c "); + TString s2 = s; CollapseInPlace(s2); UNIT_ASSERT(s == s2); @@ -125,9 +125,9 @@ Y_UNIT_TEST_SUITE(TStripStringTest) { } Y_UNIT_TEST(TestCollapseText) { - TString abs1("Very long description string written in unknown language."); - TString abs2(abs1); - TString abs3(abs1); + TString abs1("Very long description string written in unknown language."); + TString abs2(abs1); + TString abs3(abs1); CollapseText(abs1, 204); CollapseText(abs2, 54); CollapseText(abs3, 49); |