aboutsummaryrefslogtreecommitdiffstats
path: root/util/stream/mem_ut.cpp
diff options
context:
space:
mode:
authorAlexey Salmin <alexey.salmin@gmail.com>2022-02-10 16:49:37 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:49:37 +0300
commit71af077a5dfe7e9f932a508422c2dac81a57ebc0 (patch)
tree5d5cb817648f650d76cf1076100726fd9b8448e8 /util/stream/mem_ut.cpp
parent3c5b1607b38f637d2f3313791ed25c2e080d2647 (diff)
downloadydb-71af077a5dfe7e9f932a508422c2dac81a57ebc0.tar.gz
Restoring authorship annotation for Alexey Salmin <alexey.salmin@gmail.com>. Commit 2 of 2.
Diffstat (limited to 'util/stream/mem_ut.cpp')
-rw-r--r--util/stream/mem_ut.cpp28
1 files changed, 14 insertions, 14 deletions
diff --git a/util/stream/mem_ut.cpp b/util/stream/mem_ut.cpp
index 398db6598b..f388ae66ac 100644
--- a/util/stream/mem_ut.cpp
+++ b/util/stream/mem_ut.cpp
@@ -13,7 +13,7 @@ Y_UNIT_TEST_SUITE(TestMemIO) {
UNIT_ASSERT_VALUES_EQUAL(in.ReadTo(t, 'z'), 5);
UNIT_ASSERT_VALUES_EQUAL(t, "89abc");
}
-
+
Y_UNIT_TEST(NextAndUndo) {
char buffer[20];
TMemoryOutput output(buffer, sizeof(buffer));
@@ -51,28 +51,28 @@ Y_UNIT_TEST_SUITE(TestMemIO) {
}
Y_UNIT_TEST(Write) {
- char buffer[20];
- TMemoryOutput output(buffer, sizeof(buffer));
+ char buffer[20];
+ TMemoryOutput output(buffer, sizeof(buffer));
output << "1"
<< "22"
<< "333"
<< "4444"
<< "55555";
-
+
const char* const result = "1"
"22"
"333"
"4444"
"55555";
- UNIT_ASSERT(0 == memcmp(buffer, result, strlen(result)));
- }
-
+ UNIT_ASSERT(0 == memcmp(buffer, result, strlen(result)));
+ }
+
Y_UNIT_TEST(WriteChars) {
- char buffer[20];
- TMemoryOutput output(buffer, sizeof(buffer));
- output << '1' << '2' << '3' << '4' << '5' << '6' << '7' << '8' << '9' << '0';
-
- const char* const result = "1234567890";
- UNIT_ASSERT(0 == memcmp(buffer, result, strlen(result)));
- }
+ char buffer[20];
+ TMemoryOutput output(buffer, sizeof(buffer));
+ output << '1' << '2' << '3' << '4' << '5' << '6' << '7' << '8' << '9' << '0';
+
+ const char* const result = "1234567890";
+ UNIT_ASSERT(0 == memcmp(buffer, result, strlen(result)));
+ }
}