aboutsummaryrefslogtreecommitdiffstats
path: root/util/memory/blob_ut.cpp
diff options
context:
space:
mode:
authorleo <leo@yandex-team.ru>2022-02-10 16:46:40 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:46:40 +0300
commit980edcd3304699edf9d4e4d6a656e585028e2a72 (patch)
tree139f47f3911484ae9af0eb347b1a88bd6c4bb35f /util/memory/blob_ut.cpp
parentb036a557f285146e5e35d4213e29a094ab907bcf (diff)
downloadydb-980edcd3304699edf9d4e4d6a656e585028e2a72.tar.gz
Restoring authorship annotation for <leo@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'util/memory/blob_ut.cpp')
-rw-r--r--util/memory/blob_ut.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/util/memory/blob_ut.cpp b/util/memory/blob_ut.cpp
index 023f9a0487..405717c275 100644
--- a/util/memory/blob_ut.cpp
+++ b/util/memory/blob_ut.cpp
@@ -1,7 +1,7 @@
#include "blob.h"
#include <library/cpp/testing/unittest/registar.h>
-
+
#include <util/system/tempfile.h>
#include <util/folder/path.h>
#include <util/stream/output.h>
@@ -13,7 +13,7 @@ Y_UNIT_TEST_SUITE(TBlobTest) {
Y_UNIT_TEST(TestSubBlob) {
TBlob child;
const char* p = nullptr;
-
+
{
TBlob parent = TBlob::CopySingleThreaded("0123456789", 10);
UNIT_ASSERT_EQUAL(parent.Length(), 10);
@@ -21,12 +21,12 @@ Y_UNIT_TEST_SUITE(TBlobTest) {
UNIT_ASSERT_EQUAL(memcmp(p, "0123456789", 10), 0);
child = parent.SubBlob(2, 5);
} // Don't worry about parent
-
+
UNIT_ASSERT_EQUAL(child.Length(), 3);
UNIT_ASSERT_EQUAL(memcmp(child.AsCharPtr(), "234", 3), 0);
UNIT_ASSERT_EQUAL(p + 2, child.AsCharPtr());
}
-
+
Y_UNIT_TEST(TestFromStream) {
TString s("sjklfgsdyutfuyas54fa78s5f89a6df790asdf7");
TMemoryInput mi(s.data(), s.size());