aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/containers/comptrie
diff options
context:
space:
mode:
authorfinder <finder@yandex-team.ru>2022-02-10 16:49:24 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:49:24 +0300
commit2ab6bab688484680d3ebc5c4a7e9cd3ff04fda04 (patch)
tree5d5cb817648f650d76cf1076100726fd9b8448e8 /library/cpp/containers/comptrie
parentabbbaf4075fbaa0ff4ce9faa1188089466a21dbe (diff)
downloadydb-2ab6bab688484680d3ebc5c4a7e9cd3ff04fda04.tar.gz
Restoring authorship annotation for <finder@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'library/cpp/containers/comptrie')
-rw-r--r--library/cpp/containers/comptrie/comptrie_ut.cpp44
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 0b95128191..74bee09b5d 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;
{