diff options
author | gotmanov <gotmanov@yandex-team.ru> | 2022-02-10 16:49:26 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:49:26 +0300 |
commit | b3c1a086292c74ed88830693f15a96ddeadc6b9a (patch) | |
tree | 5d5cb817648f650d76cf1076100726fd9b8448e8 /util/generic/map_ut.cpp | |
parent | 243edeedfd2c5152b5c7812e0af471e1bb0232e8 (diff) | |
download | ydb-b3c1a086292c74ed88830693f15a96ddeadc6b9a.tar.gz |
Restoring authorship annotation for <gotmanov@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'util/generic/map_ut.cpp')
-rw-r--r-- | util/generic/map_ut.cpp | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/util/generic/map_ut.cpp b/util/generic/map_ut.cpp index 64a2ad6d040..79e832b024f 100644 --- a/util/generic/map_ut.cpp +++ b/util/generic/map_ut.cpp @@ -476,21 +476,21 @@ Y_UNIT_TEST_SUITE(TYMapTest) { expected.emplace("three", 3); UNIT_ASSERT_VALUES_EQUAL(mm, expected); } - + Y_UNIT_TEST(TestMovePoolAlloc) { using TMapInPool = TMap<int, int, TLess<int>, TPoolAllocator>; - - TMemoryPool pool(1); - - TMapInPool m(&pool); - m.emplace(0, 1); - + + TMemoryPool pool(1); + + TMapInPool m(&pool); + m.emplace(0, 1); + UNIT_ASSERT(m.contains(0)); - UNIT_ASSERT_VALUES_EQUAL(1, m[0]); - - TMapInPool movedM = std::move(m); - + UNIT_ASSERT_VALUES_EQUAL(1, m[0]); + + TMapInPool movedM = std::move(m); + UNIT_ASSERT(movedM.contains(0)); - UNIT_ASSERT_VALUES_EQUAL(1, movedM[0]); - } + UNIT_ASSERT_VALUES_EQUAL(1, movedM[0]); + } } |