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/stream/str_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/stream/str_ut.cpp')
-rw-r--r-- | util/stream/str_ut.cpp | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/util/stream/str_ut.cpp b/util/stream/str_ut.cpp index 76f1879c2c..fc6b46c31a 100644 --- a/util/stream/str_ut.cpp +++ b/util/stream/str_ut.cpp @@ -52,16 +52,16 @@ Y_UNIT_TEST_SUITE(TStringInputOutputTest) { TString string0 = "All animals are equal, but some animals are more equal than others."; TString string1; - for (size_t i = 1; i <= string0.size(); i++) { + for (size_t i = 1; i <= string0.size(); i++) { string1 += string0.substr(0, i); - } + } TStringInput input0(string1); size_t left = 5; - while (left > 0) { + while (left > 0) { left -= input0.Skip(left); - } + } TString string2 = input0.ReadAll(); @@ -116,17 +116,17 @@ Y_UNIT_TEST_SUITE(TStringInputOutputTest) { Y_UNIT_TEST(Write) { TString str; TStringOutput output(str); - output << "1" - << "22" - << "333" - << "4444" - << "55555"; - - UNIT_ASSERT_STRINGS_EQUAL(str, "1" - "22" - "333" - "4444" - "55555"); + output << "1" + << "22" + << "333" + << "4444" + << "55555"; + + UNIT_ASSERT_STRINGS_EQUAL(str, "1" + "22" + "333" + "4444" + "55555"); } Y_UNIT_TEST(WriteChars) { |