diff options
author | Egor Kochetov <[email protected]> | 2022-02-10 16:50:36 +0300 |
---|---|---|
committer | Daniil Cherednik <[email protected]> | 2022-02-10 16:50:36 +0300 |
commit | 40896b241c91572ea1369526ee1e6ae0ba340f34 (patch) | |
tree | cb6d8f482e66c136ec128a42417cd5f858520d12 /util/stream | |
parent | 3889d4c01a589a555fbc33d66279be23e267ab3b (diff) |
Restoring authorship annotation for Egor Kochetov <[email protected]>. Commit 1 of 2.
Diffstat (limited to 'util/stream')
-rw-r--r-- | util/stream/str.h | 14 | ||||
-rw-r--r-- | util/stream/str_ut.cpp | 16 |
2 files changed, 15 insertions, 15 deletions
diff --git a/util/stream/str.h b/util/stream/str.h index 028bd572c03..6c43fe96077 100644 --- a/util/stream/str.h +++ b/util/stream/str.h @@ -143,13 +143,13 @@ public: ~TStringStream() override; /** - * @returns Whether @c this contains any data - */ - explicit operator bool() const noexcept { - return !Empty(); - } - - /** + * @returns Whether @c this contains any data + */ + explicit operator bool() const noexcept { + return !Empty(); + } + + /** * @returns String that this stream is writing into. */ inline TString& Str() noexcept { diff --git a/util/stream/str_ut.cpp b/util/stream/str_ut.cpp index fc6b46c31a4..a7d075d5fa4 100644 --- a/util/stream/str_ut.cpp +++ b/util/stream/str_ut.cpp @@ -67,15 +67,15 @@ Y_UNIT_TEST_SUITE(TStringInputOutputTest) { UNIT_ASSERT_VALUES_EQUAL(string2, string1.substr(5)); } - + Y_UNIT_TEST(OperatorBool) { - TStringStream str; - UNIT_ASSERT(!str); - str << "data"; - UNIT_ASSERT(str); - str.Clear(); - UNIT_ASSERT(!str); - } + TStringStream str; + UNIT_ASSERT(!str); + str << "data"; + UNIT_ASSERT(str); + str.Clear(); + UNIT_ASSERT(!str); + } Y_UNIT_TEST(TestReadTo) { TString s("0123456789abc"); |