diff options
author | denplusplus <denplusplus@yandex-team.ru> | 2022-02-10 16:47:34 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:47:34 +0300 |
commit | addb3626ed629a8c7d9c8c30e87365b478a8c266 (patch) | |
tree | c0748b5dcbade83af788c0abfa89c0383d6b779c /util/stream/ios_ut.cpp | |
parent | 57c20d143e8a438cd76b9fdc3ca2e8ee3ac1f32a (diff) | |
download | ydb-addb3626ed629a8c7d9c8c30e87365b478a8c266.tar.gz |
Restoring authorship annotation for <denplusplus@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'util/stream/ios_ut.cpp')
-rw-r--r-- | util/stream/ios_ut.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/util/stream/ios_ut.cpp b/util/stream/ios_ut.cpp index 307470e196..139f4296e5 100644 --- a/util/stream/ios_ut.cpp +++ b/util/stream/ios_ut.cpp @@ -254,30 +254,30 @@ void TStreamsTest::TestBufferedIO() { bo.Finish(); } } - + void TStreamsTest::TestBufferStream() { - TBufferStream stream; + TBufferStream stream; TString s = "test"; stream.Write(s.data(), s.size()); - char buf[5]; + char buf[5]; size_t bytesRead = stream.Read(buf, 4); UNIT_ASSERT_EQUAL(4, bytesRead); UNIT_ASSERT_EQUAL(0, strncmp(s.data(), buf, 4)); - + stream.Write(s.data(), s.size()); bytesRead = stream.Read(buf, 2); UNIT_ASSERT_EQUAL(2, bytesRead); - UNIT_ASSERT_EQUAL(0, strncmp("te", buf, 2)); + UNIT_ASSERT_EQUAL(0, strncmp("te", buf, 2)); bytesRead = stream.Read(buf, 2); UNIT_ASSERT_EQUAL(2, bytesRead); - UNIT_ASSERT_EQUAL(0, strncmp("st", buf, 2)); - + UNIT_ASSERT_EQUAL(0, strncmp("st", buf, 2)); + bytesRead = stream.Read(buf, 2); UNIT_ASSERT_EQUAL(0, bytesRead); -} - +} + namespace { class TStringListInput: public IWalkInput { public: |