diff options
author | ishfb <ishfb@yandex-team.ru> | 2022-02-10 16:48:08 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:48:08 +0300 |
commit | 069c69f58fd78de3cf2e6eb2304047281e21fb65 (patch) | |
tree | b222e5ac2e2e98872661c51ccceee5da0d291e13 /util/generic/iterator_range_ut.cpp | |
parent | 0170772a2dbf133f32e17ca137ff64790d43831f (diff) | |
download | ydb-069c69f58fd78de3cf2e6eb2304047281e21fb65.tar.gz |
Restoring authorship annotation for <ishfb@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'util/generic/iterator_range_ut.cpp')
-rw-r--r-- | util/generic/iterator_range_ut.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/util/generic/iterator_range_ut.cpp b/util/generic/iterator_range_ut.cpp index eb65d65808..a7e3670ae1 100644 --- a/util/generic/iterator_range_ut.cpp +++ b/util/generic/iterator_range_ut.cpp @@ -1,15 +1,15 @@ #include "iterator_range.h" - + #include <library/cpp/testing/unittest/registar.h> -#include <util/generic/algorithm.h> +#include <util/generic/algorithm.h> #include <util/generic/vector.h> - + Y_UNIT_TEST_SUITE(IteratorRange) { Y_UNIT_TEST(DefaultConstructor) { TIteratorRange<int*> range; UNIT_ASSERT(range.empty()); } - + Y_UNIT_TEST(DefaultConstructorSentinel) { TIteratorRange<int*, void*> range; UNIT_ASSERT(range.empty()); @@ -21,7 +21,7 @@ Y_UNIT_TEST_SUITE(IteratorRange) { Y_UNUSED(i); } } - + Y_UNIT_TEST(RangeBasedForLoopSentinel) { // compileability test for (int i : TIteratorRange<int*, void*>()) { @@ -35,8 +35,8 @@ Y_UNIT_TEST_SUITE(IteratorRange) { UNIT_ASSERT_VALUES_EQUAL(range.size(), Y_ARRAY_SIZE(values)); UNIT_ASSERT(Equal(range.begin(), range.end(), values)); UNIT_ASSERT(!range.empty()); - } - + } + Y_UNIT_TEST(WorksSentinel) { struct TRangeSentinel { }; @@ -95,4 +95,4 @@ Y_UNIT_TEST_SUITE(IteratorRange) { // we should be able to use TIteratorRange as a container parameter for standard algorithms UNIT_ASSERT(AllOf(range, [](int x) { return x > 0; })); } -} +} |