diff options
author | mstebelev <mstebelev@yandex-team.ru> | 2022-02-10 16:47:17 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:47:17 +0300 |
commit | 93e9e4639b6ee2afbdf45cf3927cea6d340e19b0 (patch) | |
tree | 9814fbd1c3effac9b8377c5d604b367b14e2db55 /library/cpp/iterator/ut | |
parent | 5a176099114d03d5669e95a55a3a514bd24dd8b1 (diff) | |
download | ydb-93e9e4639b6ee2afbdf45cf3927cea6d340e19b0.tar.gz |
Restoring authorship annotation for <mstebelev@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'library/cpp/iterator/ut')
-rw-r--r-- | library/cpp/iterator/ut/filtering_ut.cpp | 8 | ||||
-rw-r--r-- | library/cpp/iterator/ut/mapped_ut.cpp | 12 | ||||
-rw-r--r-- | library/cpp/iterator/ut/ya.make | 14 |
3 files changed, 17 insertions, 17 deletions
diff --git a/library/cpp/iterator/ut/filtering_ut.cpp b/library/cpp/iterator/ut/filtering_ut.cpp index 1837e1e280..60c2044698 100644 --- a/library/cpp/iterator/ut/filtering_ut.cpp +++ b/library/cpp/iterator/ut/filtering_ut.cpp @@ -1,7 +1,7 @@ #include <library/cpp/iterator/filtering.h> - + #include <library/cpp/testing/gtest/gtest.h> - + #include <util/generic/vector.h> using namespace testing; @@ -33,9 +33,9 @@ TEST(Filtering, TMutableFilteringRangeTest) { TVector<int> x = {1, 2, 3, 4, 5}; for (auto& y : MakeFilteringRange(x, [](int x) { return x % 2 == 0; })) { y = 7; - } + } EXPECT_THAT( x, ElementsAre(1, 7, 3, 7, 5) ); -} +} diff --git a/library/cpp/iterator/ut/mapped_ut.cpp b/library/cpp/iterator/ut/mapped_ut.cpp index 94b686c119..440cd37945 100644 --- a/library/cpp/iterator/ut/mapped_ut.cpp +++ b/library/cpp/iterator/ut/mapped_ut.cpp @@ -1,10 +1,10 @@ #include <library/cpp/iterator/mapped.h> - + #include <library/cpp/testing/gtest/gtest.h> - + #include <util/generic/map.h> #include <util/generic/vector.h> - + using namespace testing; TEST(TIterator, TMappedIteratorTest) { @@ -45,7 +45,7 @@ TEST(TIterator, TOwningMappedMethodTest) { TVector<std::pair<int, int>>{std::make_pair(1, 2), std::make_pair(3, 4)}, [](auto& point) -> int& { return point.first; - } + } ); EXPECT_EQ(range[0], 1); range[0] += 1; @@ -54,8 +54,8 @@ TEST(TIterator, TOwningMappedMethodTest) { EXPECT_EQ(range[0], 3); for (int& y : range) { y += 7; - } + } EXPECT_EQ(*range.begin(), 10); EXPECT_EQ(*(range.begin() + 1), 10); -} +} diff --git a/library/cpp/iterator/ut/ya.make b/library/cpp/iterator/ut/ya.make index 1a457541b4..601e5663b9 100644 --- a/library/cpp/iterator/ut/ya.make +++ b/library/cpp/iterator/ut/ya.make @@ -1,18 +1,18 @@ GTEST() - + PEERDIR( library/cpp/iterator ) OWNER(g:util) - -SRCS( - filtering_ut.cpp + +SRCS( + filtering_ut.cpp functools_ut.cpp iterate_keys_ut.cpp iterate_values_ut.cpp mapped_ut.cpp zip_ut.cpp -) - -END() +) + +END() |