diff options
author | danlark <danlark@yandex-team.ru> | 2022-02-10 16:46:08 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:46:08 +0300 |
commit | 3426a9bc7f169ae9da54cef557ad2a33f6e8eee0 (patch) | |
tree | 26154e1e9990f1bb4525d3e3fb5b6dac2c2c1da2 /util/string/subst_ut.cpp | |
parent | cb68f224c46a8ee52ac3fdd2a32534b8bb8dc134 (diff) | |
download | ydb-3426a9bc7f169ae9da54cef557ad2a33f6e8eee0.tar.gz |
Restoring authorship annotation for <danlark@yandex-team.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 21eccef779..a4db704938 100644 --- a/util/string/subst_ut.cpp +++ b/util/string/subst_ut.cpp @@ -26,7 +26,7 @@ Y_UNIT_TEST_SUITE(TStringSubst) { Y_UNIT_TEST(TestSubstGlobalNoSubstA) { for (const auto& from : ALL_FROM) { - const size_t fromSz = from.size(); + const size_t fromSz = from.size(); const size_t minSz = fromSz; const size_t maxSz = fromSz + MIN_FROM_CTX; for (size_t sz = minSz; sz <= maxSz; ++sz) { @@ -42,7 +42,7 @@ Y_UNIT_TEST_SUITE(TStringSubst) { Y_UNIT_TEST(TestSubstGlobalNoSubstB) { for (const auto& from : ALL_FROM) { - const size_t fromSz = from.size(); + const size_t fromSz = from.size(); const size_t minSz = fromSz; const size_t maxSz = fromSz + MIN_FROM_CTX; for (size_t sz = minSz; sz <= maxSz; ++sz) { @@ -64,7 +64,7 @@ Y_UNIT_TEST_SUITE(TStringSubst) { 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) { + for (size_t fromBeg = minBeg; fromBeg <= sz - numLeft * from.size(); ++fromBeg) { if (parts.empty()) { parts.emplace_back(fromBeg, '.'); } else { @@ -72,16 +72,16 @@ Y_UNIT_TEST_SUITE(TStringSubst) { } if (numLeft == 1) { - parts.emplace_back(sz - fromBeg - from.size(), '.'); + parts.emplace_back(sz - fromBeg - from.size(), '.'); TString sFrom = JoinSeq(from, parts); - UNIT_ASSERT_VALUES_EQUAL_C(sFrom.size(), sz, sFrom); + UNIT_ASSERT_VALUES_EQUAL_C(sFrom.size(), sz, sFrom); for (const auto& to : ALL_TO) { TString sTo = JoinSeq(to, parts); AssertSubstGlobal(sFrom, sTo, from, to, fromPos, numSubst); } parts.pop_back(); } else { - DoTestSubstGlobal(parts, fromBeg + from.size(), sz, from, fromPos, numSubst); + DoTestSubstGlobal(parts, fromBeg + from.size(), sz, from, fromPos, numSubst); } parts.pop_back(); @@ -91,7 +91,7 @@ Y_UNIT_TEST_SUITE(TStringSubst) { static void DoTestSubstGlobal(size_t numSubst) { TVector<TString> parts; for (const auto& from : ALL_FROM) { - const size_t fromSz = from.size(); + const size_t fromSz = from.size(); const size_t minSz = numSubst * fromSz; const size_t maxSz = numSubst * (fromSz + MIN_FROM_CTX); for (size_t sz = minSz; sz <= maxSz; ++sz) { |