diff options
author | Alexey Salmin <alexey.salmin@gmail.com> | 2022-02-10 16:49:37 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:49:37 +0300 |
commit | 71af077a5dfe7e9f932a508422c2dac81a57ebc0 (patch) | |
tree | 5d5cb817648f650d76cf1076100726fd9b8448e8 /util/stream/str_ut.cpp | |
parent | 3c5b1607b38f637d2f3313791ed25c2e080d2647 (diff) | |
download | ydb-71af077a5dfe7e9f932a508422c2dac81a57ebc0.tar.gz |
Restoring authorship annotation for Alexey Salmin <alexey.salmin@gmail.com>. Commit 2 of 2.
Diffstat (limited to 'util/stream/str_ut.cpp')
-rw-r--r-- | util/stream/str_ut.cpp | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/util/stream/str_ut.cpp b/util/stream/str_ut.cpp index cde603b86b..fc6b46c31a 100644 --- a/util/stream/str_ut.cpp +++ b/util/stream/str_ut.cpp @@ -87,7 +87,7 @@ Y_UNIT_TEST_SUITE(TStringInputOutputTest) { UNIT_ASSERT_VALUES_EQUAL(in0.ReadTo(t, 'z'), 5); UNIT_ASSERT_VALUES_EQUAL(t, "89abc"); } - + Y_UNIT_TEST(WriteViaNextAndUndo) { TString str1; TStringOutput output(str1); @@ -114,28 +114,28 @@ Y_UNIT_TEST_SUITE(TStringInputOutputTest) { } Y_UNIT_TEST(Write) { - TString str; - TStringOutput output(str); + TString str; + TStringOutput output(str); output << "1" << "22" << "333" << "4444" << "55555"; - + UNIT_ASSERT_STRINGS_EQUAL(str, "1" "22" "333" "4444" "55555"); - } - + } + Y_UNIT_TEST(WriteChars) { - TString str; - TStringOutput output(str); - output << '1' << '2' << '3' << '4' << '5' << '6' << '7' << '8' << '9' << '0'; - - UNIT_ASSERT_STRINGS_EQUAL(str, "1234567890"); - } + TString str; + TStringOutput output(str); + output << '1' << '2' << '3' << '4' << '5' << '6' << '7' << '8' << '9' << '0'; + + UNIT_ASSERT_STRINGS_EQUAL(str, "1234567890"); + } Y_UNIT_TEST(MoveConstructor) { TString str; |