summaryrefslogtreecommitdiffstats
path: root/util/stream/ios_ut.cpp
diff options
context:
space:
mode:
authordenplusplus <[email protected]>2022-02-10 16:47:34 +0300
committerDaniil Cherednik <[email protected]>2022-02-10 16:47:34 +0300
commit57c20d143e8a438cd76b9fdc3ca2e8ee3ac1f32a (patch)
treecc63639f8e502db19a82c20e2861c6d1edbf9fea /util/stream/ios_ut.cpp
parent464ba3814a83db4f2d5327393b0b6eaf0c86bfd7 (diff)
Restoring authorship annotation for <[email protected]>. Commit 1 of 2.
Diffstat (limited to 'util/stream/ios_ut.cpp')
-rw-r--r--util/stream/ios_ut.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/util/stream/ios_ut.cpp b/util/stream/ios_ut.cpp
index 139f4296e50..307470e1964 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: