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 | 243edeedfd2c5152b5c7812e0af471e1bb0232e8 (patch) | |
tree | 7efbef4b4e045bcee8833f7fc22a639fa0ff06aa /util/generic/map_ut.cpp | |
parent | 56c39b3cf908e7202b1f7551a1653681e8015607 (diff) | |
download | ydb-243edeedfd2c5152b5c7812e0af471e1bb0232e8.tar.gz |
Restoring authorship annotation for <gotmanov@yandex-team.ru>. Commit 1 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 79e832b024f..64a2ad6d040 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]); + } } |