diff options
author | kerzum <kerzum@yandex-team.ru> | 2022-02-10 16:49:33 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:49:33 +0300 |
commit | 47a7e7b29636bfb2deb1df5f92363b3c75229c95 (patch) | |
tree | 5d5cb817648f650d76cf1076100726fd9b8448e8 /util/generic/buffer_ut.cpp | |
parent | 9a7232babfd763ccfe827bc70e82e0f50cfd8276 (diff) | |
download | ydb-47a7e7b29636bfb2deb1df5f92363b3c75229c95.tar.gz |
Restoring authorship annotation for <kerzum@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'util/generic/buffer_ut.cpp')
-rw-r--r-- | util/generic/buffer_ut.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/util/generic/buffer_ut.cpp b/util/generic/buffer_ut.cpp index d6c7f70e0c..437d7122ec 100644 --- a/util/generic/buffer_ut.cpp +++ b/util/generic/buffer_ut.cpp @@ -56,22 +56,22 @@ Y_UNIT_TEST_SUITE(TBufferTest) { buf.Resize(10); UNIT_ASSERT_VALUES_EQUAL(buf.size(), 10u); - + buf.Resize(0); UNIT_ASSERT_VALUES_EQUAL(buf.size(), 0u); - + buf.Resize(9); memcpy(buf.data(), content, 9); UNIT_ASSERT_VALUES_EQUAL(TString(buf.data(), buf.size()), "some text"); - + buf.Resize(4); UNIT_ASSERT_VALUES_EQUAL(TString(buf.data(), buf.size()), "some"); } - + Y_UNIT_TEST(TestReserve) { TBuffer buf; UNIT_ASSERT_EQUAL(buf.Capacity(), 0); - + buf.Reserve(4); UNIT_ASSERT_EQUAL(buf.Capacity(), 4); |