aboutsummaryrefslogtreecommitdiffstats
path: root/util/ysaveload_ut.cpp
diff options
context:
space:
mode:
authorbreqwas <breqwas@yandex-team.ru>2022-02-10 16:51:44 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:51:44 +0300
commitfdc4797c0e532e31f67d394e910be45b997300f6 (patch)
treeb731cecf11522a4fe35870c15f0f06cd7ce2a5a7 /util/ysaveload_ut.cpp
parent35d70ae7f13aa7c0440e36075f3e3fbeb7d14869 (diff)
downloadydb-fdc4797c0e532e31f67d394e910be45b997300f6.tar.gz
Restoring authorship annotation for <breqwas@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'util/ysaveload_ut.cpp')
-rw-r--r--util/ysaveload_ut.cpp52
1 files changed, 26 insertions, 26 deletions
diff --git a/util/ysaveload_ut.cpp b/util/ysaveload_ut.cpp
index 723c68f391..8fc4cab999 100644
--- a/util/ysaveload_ut.cpp
+++ b/util/ysaveload_ut.cpp
@@ -140,17 +140,17 @@ private:
{
TMultiMap<ui16, ui32> multimap;
-
- multimap.emplace((ui16)1, 2);
- multimap.emplace((ui16)2, 3);
- multimap.emplace((ui16)2, 4);
- multimap.emplace((ui16)2, 5);
- multimap.emplace((ui16)3, 6);
-
- Save(&S_, multimap);
- }
-
- {
+
+ multimap.emplace((ui16)1, 2);
+ multimap.emplace((ui16)2, 3);
+ multimap.emplace((ui16)2, 4);
+ multimap.emplace((ui16)2, 5);
+ multimap.emplace((ui16)3, 6);
+
+ Save(&S_, multimap);
+ }
+
+ {
TSaveHelper helper;
Save(&S_, helper);
@@ -271,25 +271,25 @@ private:
{
TMultiMap<ui16, ui32> multimap;
-
- Load(&S_, multimap);
- UNIT_ASSERT_EQUAL(multimap.size(), 5);
- UNIT_ASSERT_EQUAL(multimap.find((ui16)1)->second, 2);
- UNIT_ASSERT_EQUAL(multimap.find((ui16)3)->second, 6);
-
+
+ Load(&S_, multimap);
+ UNIT_ASSERT_EQUAL(multimap.size(), 5);
+ UNIT_ASSERT_EQUAL(multimap.find((ui16)1)->second, 2);
+ UNIT_ASSERT_EQUAL(multimap.find((ui16)3)->second, 6);
+
THashSet<ui32> values;
- auto range = multimap.equal_range((ui16)2);
- for (auto i = range.first; i != range.second; ++i) {
- values.insert(i->second);
- }
-
- UNIT_ASSERT_EQUAL(values.size(), 3);
+ auto range = multimap.equal_range((ui16)2);
+ for (auto i = range.first; i != range.second; ++i) {
+ values.insert(i->second);
+ }
+
+ UNIT_ASSERT_EQUAL(values.size(), 3);
UNIT_ASSERT_EQUAL(values.contains(3), true);
UNIT_ASSERT_EQUAL(values.contains(4), true);
UNIT_ASSERT_EQUAL(values.contains(5), true);
- }
-
- {
+ }
+
+ {
TSaveHelper helper;
Load(&S_, helper);