aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/iterator/ut/iterate_keys_ut.cpp
diff options
context:
space:
mode:
authorthegeorg <thegeorg@yandex-team.ru>2022-02-10 16:45:12 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:45:12 +0300
commit49116032d905455a7b1c994e4a696afc885c1e71 (patch)
treebe835aa92c6248212e705f25388ebafcf84bc7a1 /library/cpp/iterator/ut/iterate_keys_ut.cpp
parent4e839db24a3bbc9f1c610c43d6faaaa99824dcca (diff)
downloadydb-49116032d905455a7b1c994e4a696afc885c1e71.tar.gz
Restoring authorship annotation for <thegeorg@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'library/cpp/iterator/ut/iterate_keys_ut.cpp')
-rw-r--r--library/cpp/iterator/ut/iterate_keys_ut.cpp74
1 files changed, 37 insertions, 37 deletions
diff --git a/library/cpp/iterator/ut/iterate_keys_ut.cpp b/library/cpp/iterator/ut/iterate_keys_ut.cpp
index b5058c379d..49eb866b6e 100644
--- a/library/cpp/iterator/ut/iterate_keys_ut.cpp
+++ b/library/cpp/iterator/ut/iterate_keys_ut.cpp
@@ -1,37 +1,37 @@
-#include <library/cpp/iterator/iterate_keys.h>
-
-#include <library/cpp/testing/gtest/gtest.h>
-
-#include <map>
-
-using namespace testing;
-
-TEST(IterateKeys, ConstMappingIteration) {
- const std::map<int, int> squares{
- {1, 1},
- {2, 4},
- {3, 9},
- };
- EXPECT_THAT(
- IterateKeys(squares),
- ElementsAre(1, 2, 3)
- );
-}
-
-TEST(IterateKeys, ConstMultiMappingIteration) {
- const std::multimap<int, int> primesBelow{
- {2, 2},
- {5, 3},
- {5, 5},
- {11, 7},
- {11, 11},
- {23, 13},
- {23, 17},
- {23, 23},
- };
-
- EXPECT_THAT(
- IterateKeys(primesBelow),
- ElementsAre(2, 5, 5, 11, 11, 23, 23, 23)
- );
-}
+#include <library/cpp/iterator/iterate_keys.h>
+
+#include <library/cpp/testing/gtest/gtest.h>
+
+#include <map>
+
+using namespace testing;
+
+TEST(IterateKeys, ConstMappingIteration) {
+ const std::map<int, int> squares{
+ {1, 1},
+ {2, 4},
+ {3, 9},
+ };
+ EXPECT_THAT(
+ IterateKeys(squares),
+ ElementsAre(1, 2, 3)
+ );
+}
+
+TEST(IterateKeys, ConstMultiMappingIteration) {
+ const std::multimap<int, int> primesBelow{
+ {2, 2},
+ {5, 3},
+ {5, 5},
+ {11, 7},
+ {11, 11},
+ {23, 13},
+ {23, 17},
+ {23, 23},
+ };
+
+ EXPECT_THAT(
+ IterateKeys(primesBelow),
+ ElementsAre(2, 5, 5, 11, 11, 23, 23, 23)
+ );
+}