diff options
author | Anton Samokhvalov <pg83@yandex.ru> | 2022-02-10 16:45:17 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:45:17 +0300 |
commit | d3a398281c6fd1d3672036cb2d63f842d2cb28c5 (patch) | |
tree | dd4bd3ca0f36b817e96812825ffaf10d645803f2 /util/string/subst_ut.cpp | |
parent | 72cb13b4aff9bc9cf22e49251bc8fd143f82538f (diff) | |
download | ydb-d3a398281c6fd1d3672036cb2d63f842d2cb28c5.tar.gz |
Restoring authorship annotation for Anton Samokhvalov <pg83@yandex.ru>. Commit 2 of 2.
Diffstat (limited to 'util/string/subst_ut.cpp')
-rw-r--r-- | util/string/subst_ut.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/util/string/subst_ut.cpp b/util/string/subst_ut.cpp index e0bb45f039..21eccef779 100644 --- a/util/string/subst_ut.cpp +++ b/util/string/subst_ut.cpp @@ -1,7 +1,7 @@ #include "join.h" -#include "subst.h" +#include "subst.h" #include <string> - + #include <library/cpp/testing/unittest/registar.h> Y_UNIT_TEST_SUITE(TStringSubst) { @@ -61,7 +61,7 @@ Y_UNIT_TEST_SUITE(TStringSubst) { } } - static void DoTestSubstGlobal(TVector<TString>& parts, const size_t minBeg, const size_t sz, + static void DoTestSubstGlobal(TVector<TString>& parts, const size_t minBeg, const size_t sz, const TString& from, const size_t fromPos, const size_t numSubst) { const size_t numLeft = numSubst - parts.size(); for (size_t fromBeg = minBeg; fromBeg <= sz - numLeft * from.size(); ++fromBeg) { @@ -122,13 +122,13 @@ Y_UNIT_TEST_SUITE(TStringSubst) { Y_UNIT_TEST(TestSubstGlobalOld) { TString s; s = "aaa"; - SubstGlobal(s, "a", "bb"); + SubstGlobal(s, "a", "bb"); UNIT_ASSERT_EQUAL(s, TString("bbbbbb")); s = "aaa"; - SubstGlobal(s, "a", "b"); + SubstGlobal(s, "a", "b"); UNIT_ASSERT_EQUAL(s, TString("bbb")); s = "aaa"; - SubstGlobal(s, "a", ""); + SubstGlobal(s, "a", ""); UNIT_ASSERT_EQUAL(s, TString("")); s = "abcdefbcbcdfb"; SubstGlobal(s, "bc", "bbc", 2); @@ -250,4 +250,4 @@ Y_UNIT_TEST_SUITE(TStringSubst) { UNIT_ASSERT_VALUES_EQUAL(st, ss); } } -} +} |