diff options
author | Anton Samokhvalov <pg83@yandex.ru> | 2022-02-10 16:45:15 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:45:15 +0300 |
commit | 72cb13b4aff9bc9cf22e49251bc8fd143f82538f (patch) | |
tree | da2c34829458c7d4e74bdfbdf85dff449e9e7fb8 /util/string/subst_ut.cpp | |
parent | 778e51ba091dc39e7b7fcab2b9cf4dbedfb6f2b5 (diff) | |
download | ydb-72cb13b4aff9bc9cf22e49251bc8fd143f82538f.tar.gz |
Restoring authorship annotation for Anton Samokhvalov <pg83@yandex.ru>. Commit 1 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 21eccef7795..e0bb45f039b 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); } } -} +} |