aboutsummaryrefslogtreecommitdiffstats
path: root/util/generic/iterator_range_ut.cpp
diff options
context:
space:
mode:
authorishfb <ishfb@yandex-team.ru>2022-02-10 16:48:07 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:48:07 +0300
commit0170772a2dbf133f32e17ca137ff64790d43831f (patch)
tree68ce3ab477bcb9e09abf2b0a6e7b34287c53f0df /util/generic/iterator_range_ut.cpp
parentdf6128370874866447314ec18d8e67fc7bde40b4 (diff)
downloadydb-0170772a2dbf133f32e17ca137ff64790d43831f.tar.gz
Restoring authorship annotation for <ishfb@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'util/generic/iterator_range_ut.cpp')
-rw-r--r--util/generic/iterator_range_ut.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/util/generic/iterator_range_ut.cpp b/util/generic/iterator_range_ut.cpp
index a7e3670ae1..eb65d65808 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; }));
}
-}
+}