aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/getopt/ut/last_getopt_ut.cpp
diff options
context:
space:
mode:
authoralex-sh <alex-sh@yandex-team.ru>2022-02-10 16:50:03 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:50:03 +0300
commit3196904c9f5bf7aff7374eeadcb0671589581f61 (patch)
treed13114a178799aeb203a4b3b43dd7fb0c4f6975f /library/cpp/getopt/ut/last_getopt_ut.cpp
parentd154d11651ea533127249184148c3f023e2c6d0a (diff)
downloadydb-3196904c9f5bf7aff7374eeadcb0671589581f61.tar.gz
Restoring authorship annotation for <alex-sh@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/getopt/ut/last_getopt_ut.cpp')
-rw-r--r--library/cpp/getopt/ut/last_getopt_ut.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/library/cpp/getopt/ut/last_getopt_ut.cpp b/library/cpp/getopt/ut/last_getopt_ut.cpp
index c99a1d053d..25dd7db82c 100644
--- a/library/cpp/getopt/ut/last_getopt_ut.cpp
+++ b/library/cpp/getopt/ut/last_getopt_ut.cpp
@@ -493,20 +493,20 @@ Y_UNIT_TEST_SUITE(TLastGetoptTests) {
}
Y_UNIT_TEST(TestRangeSplitValue) {
- TOptsNoDefault opts;
+ TOptsNoDefault opts;
TVector<ui32> vals;
opts.AddLongOption('s', "split").RangeSplitHandler(&vals, ',', '-');
TOptsParseResultTestWrapper r(&opts, V({"prog", "--split=1,8-10", "--split=12-14"}));
UNIT_ASSERT_EQUAL(vals.size(), 7);
- UNIT_ASSERT_EQUAL(vals[0], 1);
- UNIT_ASSERT_EQUAL(vals[1], 8);
- UNIT_ASSERT_EQUAL(vals[2], 9);
- UNIT_ASSERT_EQUAL(vals[3], 10);
- UNIT_ASSERT_EQUAL(vals[4], 12);
- UNIT_ASSERT_EQUAL(vals[5], 13);
- UNIT_ASSERT_EQUAL(vals[6], 14);
- }
-
+ UNIT_ASSERT_EQUAL(vals[0], 1);
+ UNIT_ASSERT_EQUAL(vals[1], 8);
+ UNIT_ASSERT_EQUAL(vals[2], 9);
+ UNIT_ASSERT_EQUAL(vals[3], 10);
+ UNIT_ASSERT_EQUAL(vals[4], 12);
+ UNIT_ASSERT_EQUAL(vals[5], 13);
+ UNIT_ASSERT_EQUAL(vals[6], 14);
+ }
+
Y_UNIT_TEST(TestParseArgs) {
TOptsNoDefault o("AbCx:y:z::");
UNIT_ASSERT_EQUAL(o.GetCharOption('A').HasArg_, NO_ARGUMENT);