aboutsummaryrefslogtreecommitdiffstats
path: root/util/stream/str_ut.cpp
diff options
context:
space:
mode:
authorIlnur Khuziev <ilnur.khuziev@yandex.ru>2022-02-10 16:46:13 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:46:13 +0300
commit736dcd8ca259457a136f2f9f9168c44643914323 (patch)
treeddd46a036d68bfa83aa11b892f31243ea6b068a1 /util/stream/str_ut.cpp
parent9bf2fa2b060c9881d3135c2208c624a1dd546ecc (diff)
downloadydb-736dcd8ca259457a136f2f9f9168c44643914323.tar.gz
Restoring authorship annotation for Ilnur Khuziev <ilnur.khuziev@yandex.ru>. Commit 1 of 2.
Diffstat (limited to 'util/stream/str_ut.cpp')
-rw-r--r--util/stream/str_ut.cpp28
1 files changed, 14 insertions, 14 deletions
diff --git a/util/stream/str_ut.cpp b/util/stream/str_ut.cpp
index fc6b46c31a..ca770770b9 100644
--- a/util/stream/str_ut.cpp
+++ b/util/stream/str_ut.cpp
@@ -1,6 +1,6 @@
#include "str.h"
-#include <library/cpp/testing/unittest/registar.h>
+#include <library/cpp/testing/unittest/registar.h>
#include <util/generic/typetraits.h>
template <typename T>
@@ -136,17 +136,17 @@ Y_UNIT_TEST_SUITE(TStringInputOutputTest) {
UNIT_ASSERT_STRINGS_EQUAL(str, "1234567890");
}
-
- Y_UNIT_TEST(MoveConstructor) {
- TString str;
- TStringOutput output1(str);
- output1 << "foo";
-
- TStringOutput output2 = std::move(output1);
- output2 << "bar";
- UNIT_ASSERT_STRINGS_EQUAL(str, "foobar");
-
- // Check old stream is in a valid state
- output1 << "baz";
- }
+
+ Y_UNIT_TEST(MoveConstructor) {
+ TString str;
+ TStringOutput output1(str);
+ output1 << "foo";
+
+ TStringOutput output2 = std::move(output1);
+ output2 << "bar";
+ UNIT_ASSERT_STRINGS_EQUAL(str, "foobar");
+
+ // Check old stream is in a valid state
+ output1 << "baz";
+ }
}