aboutsummaryrefslogtreecommitdiffstats
path: root/util/generic/xrange_ut.cpp
diff options
context:
space:
mode:
authorgrand <grand@yandex-team.ru>2022-02-10 16:50:07 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:50:07 +0300
commita0e29f0026d32a60a618a620f30035c264346175 (patch)
tree5d5cb817648f650d76cf1076100726fd9b8448e8 /util/generic/xrange_ut.cpp
parent7eb3862cccdb866e7e739123c8024ccec628bb62 (diff)
downloadydb-a0e29f0026d32a60a618a620f30035c264346175.tar.gz
Restoring authorship annotation for <grand@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'util/generic/xrange_ut.cpp')
-rw-r--r--util/generic/xrange_ut.cpp26
1 files changed, 13 insertions, 13 deletions
diff --git a/util/generic/xrange_ut.cpp b/util/generic/xrange_ut.cpp
index 4575030792..8106da03e7 100644
--- a/util/generic/xrange_ut.cpp
+++ b/util/generic/xrange_ut.cpp
@@ -46,22 +46,22 @@ Y_UNIT_TEST_SUITE(XRange) {
}
Y_UNIT_TEST(DecrementWorks) {
- TestSteppedXRangeImpl(10, 0, -1, {10, 9, 8, 7, 6, 5, 4, 3, 2, 1});
- TestSteppedXRangeImpl(10, -1, -1, {10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0});
- TestSteppedXRangeImpl(20, 9, -1, {20, 19, 18, 17, 16, 15, 14, 13, 12, 11, 10});
+ TestSteppedXRangeImpl(10, 0, -1, {10, 9, 8, 7, 6, 5, 4, 3, 2, 1});
+ TestSteppedXRangeImpl(10, -1, -1, {10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0});
+ TestSteppedXRangeImpl(20, 9, -1, {20, 19, 18, 17, 16, 15, 14, 13, 12, 11, 10});
}
Y_UNIT_TEST(StepWorks) {
- TestSteppedXRangeImpl(0, 0, 1, {});
- TestSteppedXRangeImpl(0, 9, 3, {0, 3, 6});
- TestSteppedXRangeImpl(0, 10, 3, {0, 3, 6, 9});
- TestSteppedXRangeImpl(0, 11, 3, {0, 3, 6, 9});
- TestSteppedXRangeImpl(0, 12, 3, {0, 3, 6, 9});
- TestSteppedXRangeImpl(0, 13, 3, {0, 3, 6, 9, 12});
- TestSteppedXRangeImpl(0, 10, 2, {0, 2, 4, 6, 8});
- TestSteppedXRangeImpl(15, 0, -4, {15, 11, 7, 3});
- TestSteppedXRangeImpl(15, -1, -4, {15, 11, 7, 3});
- TestSteppedXRangeImpl(15, -2, -4, {15, 11, 7, 3, -1});
+ TestSteppedXRangeImpl(0, 0, 1, {});
+ TestSteppedXRangeImpl(0, 9, 3, {0, 3, 6});
+ TestSteppedXRangeImpl(0, 10, 3, {0, 3, 6, 9});
+ TestSteppedXRangeImpl(0, 11, 3, {0, 3, 6, 9});
+ TestSteppedXRangeImpl(0, 12, 3, {0, 3, 6, 9});
+ TestSteppedXRangeImpl(0, 13, 3, {0, 3, 6, 9, 12});
+ TestSteppedXRangeImpl(0, 10, 2, {0, 2, 4, 6, 8});
+ TestSteppedXRangeImpl(15, 0, -4, {15, 11, 7, 3});
+ TestSteppedXRangeImpl(15, -1, -4, {15, 11, 7, 3});
+ TestSteppedXRangeImpl(15, -2, -4, {15, 11, 7, 3, -1});
}
Y_UNIT_TEST(PointersWorks) {