diff options
author | gritukan <gritukan@yandex-team.ru> | 2022-02-10 16:47:54 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:47:54 +0300 |
commit | e72b2fbecff9bceacda41e0dde32e742cfb31592 (patch) | |
tree | c0748b5dcbade83af788c0abfa89c0383d6b779c /library/cpp/yt/small_containers/unittests/compact_set_ut.cpp | |
parent | 5ab2c1182d0b02a3880e1869c6351b7ba802a19b (diff) | |
download | ydb-e72b2fbecff9bceacda41e0dde32e742cfb31592.tar.gz |
Restoring authorship annotation for <gritukan@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'library/cpp/yt/small_containers/unittests/compact_set_ut.cpp')
-rw-r--r-- | library/cpp/yt/small_containers/unittests/compact_set_ut.cpp | 42 |
1 files changed, 21 insertions, 21 deletions
diff --git a/library/cpp/yt/small_containers/unittests/compact_set_ut.cpp b/library/cpp/yt/small_containers/unittests/compact_set_ut.cpp index b9bc11c4d2..ebab5846e1 100644 --- a/library/cpp/yt/small_containers/unittests/compact_set_ut.cpp +++ b/library/cpp/yt/small_containers/unittests/compact_set_ut.cpp @@ -1,4 +1,4 @@ -//===- llvm/unittest/ADT/SmallSetTest.cpp ---------------------------------===// +//===- llvm/unittest/ADT/SmallSetTest.cpp ---------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. @@ -6,11 +6,11 @@ // //===----------------------------------------------------------------------===// // -// CompactSet unit tests. +// CompactSet unit tests. // //===----------------------------------------------------------------------===// -#include <library/cpp/yt/small_containers/compact_set.h> +#include <library/cpp/yt/small_containers/compact_set.h> #include <library/cpp/testing/gtest/gtest.h> @@ -21,9 +21,9 @@ namespace { //////////////////////////////////////////////////////////////////////////////// -TEST(CompactSetTest, Insert) { +TEST(CompactSetTest, Insert) { - TCompactSet<int, 4> s1; + TCompactSet<int, 4> s1; for (int i = 0; i < 4; i++) s1.insert(i); @@ -39,8 +39,8 @@ TEST(CompactSetTest, Insert) { EXPECT_EQ(0u, s1.count(4)); } -TEST(CompactSetTest, Grow) { - TCompactSet<int, 4> s1; +TEST(CompactSetTest, Grow) { + TCompactSet<int, 4> s1; for (int i = 0; i < 8; i++) s1.insert(i); @@ -53,8 +53,8 @@ TEST(CompactSetTest, Grow) { EXPECT_EQ(0u, s1.count(8)); } -TEST(CompactSetTest, Erase) { - TCompactSet<int, 4> s1; +TEST(CompactSetTest, Erase) { + TCompactSet<int, 4> s1; for (int i = 0; i < 8; i++) s1.insert(i); @@ -74,8 +74,8 @@ TEST(CompactSetTest, Erase) { EXPECT_EQ(0u, s1.count(8)); } -TEST(CompactSetTest, IteratorInt) { - TCompactSet<int, 4> s1; +TEST(CompactSetTest, IteratorInt) { + TCompactSet<int, 4> s1; // Test the 'small' case. for (int i = 0; i < 3; i++) @@ -99,10 +99,10 @@ TEST(CompactSetTest, IteratorInt) { EXPECT_EQ(i, V[i]); } -TEST(CompactSetTest, IteratorString) { - // Test CompactSetIterator for TCompactSet with a type with non-trivial +TEST(CompactSetTest, IteratorString) { + // Test CompactSetIterator for TCompactSet with a type with non-trivial // ctors/dtors. - TCompactSet<std::string, 2> s1; + TCompactSet<std::string, 2> s1; s1.insert("str 1"); s1.insert("str 2"); @@ -128,10 +128,10 @@ TEST(CompactSetTest, IteratorString) { EXPECT_EQ("str 4", V[3]); } -TEST(CompactSetTest, IteratorIncMoveCopy) { - // Test CompactSetIterator for TCompactSet with a type with non-trivial +TEST(CompactSetTest, IteratorIncMoveCopy) { + // Test CompactSetIterator for TCompactSet with a type with non-trivial // ctors/dtors. - TCompactSet<std::string, 2> s1; + TCompactSet<std::string, 2> s1; s1.insert("str 1"); s1.insert("str 2"); @@ -150,8 +150,8 @@ TEST(CompactSetTest, IteratorIncMoveCopy) { // These test weren't taken from llvm. -TEST(CompactSetTest, Empty) { - TCompactSet<int, 10> v; +TEST(CompactSetTest, Empty) { + TCompactSet<int, 10> v; EXPECT_TRUE(v.empty()); auto data = {1, 2, 3, 4, 5}; @@ -180,8 +180,8 @@ TEST(CompactSetTest, Empty) { EXPECT_TRUE(v.empty()); } -TEST(CompactSetTest, ForEach) { - TCompactSet<int, 10> v; +TEST(CompactSetTest, ForEach) { + TCompactSet<int, 10> v; auto data = {10, 9, 3, 4, 1, 5, 6, 8}; |