aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/getopt/ut/last_getopt_ut.cpp
diff options
context:
space:
mode:
authorkaa <kaa@yandex-team.ru>2022-02-10 16:49:28 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:49:28 +0300
commitf49cf886c755668578b0214ab9eae8ecdc1395a8 (patch)
tree5d5cb817648f650d76cf1076100726fd9b8448e8 /library/cpp/getopt/ut/last_getopt_ut.cpp
parentb99e8e1b6e3468f81111414c917adc2d334b2c3c (diff)
downloadydb-f49cf886c755668578b0214ab9eae8ecdc1395a8.tar.gz
Restoring authorship annotation for <kaa@yandex-team.ru>. Commit 2 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 086cbac9c6..c99a1d053d 100644
--- a/library/cpp/getopt/ut/last_getopt_ut.cpp
+++ b/library/cpp/getopt/ut/last_getopt_ut.cpp
@@ -456,21 +456,21 @@ Y_UNIT_TEST_SUITE(TLastGetoptTests) {
Y_UNIT_TEST(TestSetFlag) {
bool a = false, b = true, c = false, d = true;
-
- TOptsNoDefault opts;
- opts.AddLongOption('a', "alpha").NoArgument().SetFlag(&a);
- opts.AddLongOption('b', "beta").NoArgument().SetFlag(&b);
+
+ TOptsNoDefault opts;
+ opts.AddLongOption('a', "alpha").NoArgument().SetFlag(&a);
+ opts.AddLongOption('b', "beta").NoArgument().SetFlag(&b);
opts.AddCharOption('c').StoreTrue(&c);
opts.AddCharOption('d').StoreTrue(&d);
-
+
TOptsParseResultTestWrapper r(&opts, V({"cmd", "-a", "-c"}));
-
- UNIT_ASSERT(a);
- UNIT_ASSERT(!b);
+
+ UNIT_ASSERT(a);
+ UNIT_ASSERT(!b);
UNIT_ASSERT(c);
UNIT_ASSERT(!d);
- }
-
+ }
+
Y_UNIT_TEST(TestDefaultValue) {
TOptsNoDefault opts;
opts.AddLongOption("path").DefaultValue("/etc");