diff options
author | finder <finder@yandex-team.ru> | 2022-02-10 16:49:24 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:49:24 +0300 |
commit | abbbaf4075fbaa0ff4ce9faa1188089466a21dbe (patch) | |
tree | 4beaffe75727862ab08110c7ce520dc7aa49ff30 /library/cpp/containers/comptrie | |
parent | 46f4bc6ab513a0ed1407f9095284a00e20f05adc (diff) | |
download | ydb-abbbaf4075fbaa0ff4ce9faa1188089466a21dbe.tar.gz |
Restoring authorship annotation for <finder@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/containers/comptrie')
-rw-r--r-- | library/cpp/containers/comptrie/comptrie_ut.cpp | 44 |
1 files changed, 22 insertions, 22 deletions
diff --git a/library/cpp/containers/comptrie/comptrie_ut.cpp b/library/cpp/containers/comptrie/comptrie_ut.cpp index 74bee09b5d..0b95128191 100644 --- a/library/cpp/containers/comptrie/comptrie_ut.cpp +++ b/library/cpp/containers/comptrie/comptrie_ut.cpp @@ -70,9 +70,9 @@ private: UNIT_TEST(TestUnique); UNIT_TEST(TestAddRetValue); UNIT_TEST(TestClear); - + UNIT_TEST(TestIterateEmptyKey); - + UNIT_TEST(TestTrieSet); UNIT_TEST(TestTrieForVectorInt64); @@ -207,8 +207,8 @@ public: void TestUnique(); void TestAddRetValue(); void TestClear(); - - void TestIterateEmptyKey(); + + void TestIterateEmptyKey(); void TestTrieSet(); @@ -1042,24 +1042,24 @@ public: return RandomNumber<std::make_unsigned_t<T>>(); } }; - -void TCompactTrieTest::TestIterateEmptyKey() { - TBuffer trieBuffer; - { - TCompactTrieBuilder<char, ui32> builder; - UNIT_ASSERT(builder.Add("", 1)); - TBufferStream trieBufferO(trieBuffer); - builder.Save(trieBufferO); - } - TCompactTrie<char, ui32> trie(TBlob::FromBuffer(trieBuffer)); - ui32 val; - UNIT_ASSERT(trie.Find("", &val)); - UNIT_ASSERT(val == 1); - TCompactTrie<char, ui32>::TConstIterator it = trie.Begin(); - UNIT_ASSERT(it.GetKey().empty()); - UNIT_ASSERT(it.GetValue() == 1); -} - + +void TCompactTrieTest::TestIterateEmptyKey() { + TBuffer trieBuffer; + { + TCompactTrieBuilder<char, ui32> builder; + UNIT_ASSERT(builder.Add("", 1)); + TBufferStream trieBufferO(trieBuffer); + builder.Save(trieBufferO); + } + TCompactTrie<char, ui32> trie(TBlob::FromBuffer(trieBuffer)); + ui32 val; + UNIT_ASSERT(trie.Find("", &val)); + UNIT_ASSERT(val == 1); + TCompactTrie<char, ui32>::TConstIterator it = trie.Begin(); + UNIT_ASSERT(it.GetKey().empty()); + UNIT_ASSERT(it.GetValue() == 1); +} + void TCompactTrieTest::TestTrieSet() { TBuffer buffer; { |