aboutsummaryrefslogtreecommitdiffstats
path: root/util/draft/holder_vector_ut.cpp
diff options
context:
space:
mode:
authoraosipenko <aosipenko@yandex-team.ru>2022-02-10 16:48:08 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:48:08 +0300
commit69e3c43df1c96bc2ac8946bf4dfb1f5fc438ff7f (patch)
treeb222e5ac2e2e98872661c51ccceee5da0d291e13 /util/draft/holder_vector_ut.cpp
parent948fd24d47d4b3b7815aaef1686aea00ef3f4288 (diff)
downloadydb-69e3c43df1c96bc2ac8946bf4dfb1f5fc438ff7f.tar.gz
Restoring authorship annotation for <aosipenko@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'util/draft/holder_vector_ut.cpp')
-rw-r--r--util/draft/holder_vector_ut.cpp26
1 files changed, 13 insertions, 13 deletions
diff --git a/util/draft/holder_vector_ut.cpp b/util/draft/holder_vector_ut.cpp
index 265af73549..f64393860a 100644
--- a/util/draft/holder_vector_ut.cpp
+++ b/util/draft/holder_vector_ut.cpp
@@ -49,21 +49,21 @@ Y_UNIT_TEST_SUITE(THolderVectorTest) {
UNIT_ASSERT_VALUES_EQUAL(*ints[0], 1);
UNIT_ASSERT(!holder);
}
-
+
Y_UNIT_TEST(TestSwap) {
- THolderVector<int> v1;
- v1.PushBack(new int(1));
-
- THolderVector<int> v2;
- v1.Swap(v2);
- UNIT_ASSERT(v1.empty() && v2.size() == 1 && *v2.front() == 1);
- }
-
+ THolderVector<int> v1;
+ v1.PushBack(new int(1));
+
+ THolderVector<int> v2;
+ v1.Swap(v2);
+ UNIT_ASSERT(v1.empty() && v2.size() == 1 && *v2.front() == 1);
+ }
+
Y_UNIT_TEST(TestUniquePtr) {
THolderVector<TString> v;
std::unique_ptr<TString> str(new TString("hello"));
- v.PushBack(std::move(str));
- UNIT_ASSERT(v.Size() == 1);
- UNIT_ASSERT(str.get() == nullptr);
- }
+ v.PushBack(std::move(str));
+ UNIT_ASSERT(v.Size() == 1);
+ UNIT_ASSERT(str.get() == nullptr);
+ }
}