diff options
author | Alexey Salmin <alexey.salmin@gmail.com> | 2022-02-10 16:49:37 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:49:37 +0300 |
commit | 3c5b1607b38f637d2f3313791ed25c2e080d2647 (patch) | |
tree | 99be7b96e7c66612fbca94331100ef3b5fedcb88 /util/stream/buffer_ut.cpp | |
parent | de89752358147d7b25ef59a85b431bb564068a49 (diff) | |
download | ydb-3c5b1607b38f637d2f3313791ed25c2e080d2647.tar.gz |
Restoring authorship annotation for Alexey Salmin <alexey.salmin@gmail.com>. Commit 1 of 2.
Diffstat (limited to 'util/stream/buffer_ut.cpp')
-rw-r--r-- | util/stream/buffer_ut.cpp | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/util/stream/buffer_ut.cpp b/util/stream/buffer_ut.cpp index 3494696190..84ba5d3f48 100644 --- a/util/stream/buffer_ut.cpp +++ b/util/stream/buffer_ut.cpp @@ -4,8 +4,8 @@ #include <util/generic/buffer.h> -#include <cstring> - +#include <cstring> + #include "str.h" Y_UNIT_TEST_SUITE(TBufferTest) { @@ -32,7 +32,7 @@ Y_UNIT_TEST_SUITE(TBufferTest) { UNIT_ASSERT_VALUES_EQUAL(input.ReadTo(tmp, 'z'), 7); UNIT_ASSERT_VALUES_EQUAL(tmp, "4567890"); } - + Y_UNIT_TEST(WriteViaNextAndUndo) { TBuffer buffer; TBufferOutput output(buffer); @@ -59,27 +59,27 @@ Y_UNIT_TEST_SUITE(TBufferTest) { } Y_UNIT_TEST(Write) { - TBuffer buffer; - TBufferOutput output(buffer); + TBuffer buffer; + TBufferOutput output(buffer); output << "1" << "22" << "333" << "4444" << "55555"; - + UNIT_ASSERT(0 == memcmp(buffer.data(), "1" "22" "333" "4444" "55555", buffer.size())); - } - + } + Y_UNIT_TEST(WriteChars) { - TBuffer buffer; - TBufferOutput output(buffer); - output << '1' << '2' << '3' << '4' << '5' << '6' << '7' << '8' << '9' << '0'; - + TBuffer buffer; + TBufferOutput output(buffer); + output << '1' << '2' << '3' << '4' << '5' << '6' << '7' << '8' << '9' << '0'; + UNIT_ASSERT(0 == memcmp(buffer.data(), "1234567890", buffer.size())); - } + } } |