diff options
author | trofimenkov <trofimenkov@yandex-team.ru> | 2022-02-10 16:49:30 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:49:30 +0300 |
commit | 30cebc2cfa79af3b577760a113e203a79450e6b6 (patch) | |
tree | 49327bf3c28fab534b04b312a39179e70f7c2763 /util/ysaveload_ut.cpp | |
parent | a2d2743094c8d255cda4011b317235874db4d01c (diff) | |
download | ydb-30cebc2cfa79af3b577760a113e203a79450e6b6.tar.gz |
Restoring authorship annotation for <trofimenkov@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'util/ysaveload_ut.cpp')
-rw-r--r-- | util/ysaveload_ut.cpp | 94 |
1 files changed, 47 insertions, 47 deletions
diff --git a/util/ysaveload_ut.cpp b/util/ysaveload_ut.cpp index 723c68f391..f1a1c27ae5 100644 --- a/util/ysaveload_ut.cpp +++ b/util/ysaveload_ut.cpp @@ -14,7 +14,7 @@ #include <util/generic/vector.h> #include <util/generic/buffer.h> #include <util/generic/hash_set.h> -#include <util/generic/maybe.h> +#include <util/generic/maybe.h> #include <util/generic/variant.h> static inline char* AllocateFromPool(TMemoryPool& pool, size_t len) { @@ -190,26 +190,26 @@ private: Save(&S_, deq); } - { - TMaybe<size_t> h(10); - Save(&S_, h); - } - - { - TMaybe<size_t> h(20); - Save(&S_, h); - } - - { - TMaybe<size_t> h; - Save(&S_, h); - } - - { - TMaybe<size_t> h; - Save(&S_, h); - } - + { + TMaybe<size_t> h(10); + Save(&S_, h); + } + + { + TMaybe<size_t> h(20); + Save(&S_, h); + } + + { + TMaybe<size_t> h; + Save(&S_, h); + } + + { + TMaybe<size_t> h; + Save(&S_, h); + } + { THashMultiMap<TString, int> mm; @@ -333,32 +333,32 @@ private: UNIT_ASSERT_EQUAL(deq[2], 4); UNIT_ASSERT_EQUAL(deq[3], 5); } - - { - TMaybe<size_t> h(5); - Load(&S_, h); - UNIT_ASSERT_EQUAL(*h, 10); - } - - { - TMaybe<size_t> h; - Load(&S_, h); - UNIT_ASSERT_EQUAL(*h, 20); - } - - { - TMaybe<size_t> h; - UNIT_ASSERT(!h); - Load(&S_, h); - UNIT_ASSERT(!h); - } - - { - TMaybe<size_t> h(7); - UNIT_ASSERT(!!h); - Load(&S_, h); - UNIT_ASSERT(!h); - } + + { + TMaybe<size_t> h(5); + Load(&S_, h); + UNIT_ASSERT_EQUAL(*h, 10); + } + + { + TMaybe<size_t> h; + Load(&S_, h); + UNIT_ASSERT_EQUAL(*h, 20); + } + + { + TMaybe<size_t> h; + UNIT_ASSERT(!h); + Load(&S_, h); + UNIT_ASSERT(!h); + } + + { + TMaybe<size_t> h(7); + UNIT_ASSERT(!!h); + Load(&S_, h); + UNIT_ASSERT(!h); + } { THashMultiMap<TString, int> mm; |