diff options
author | kaa <kaa@yandex-team.ru> | 2022-02-10 16:49:28 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:49:28 +0300 |
commit | b99e8e1b6e3468f81111414c917adc2d334b2c3c (patch) | |
tree | 15f9f7cb2949ddab5a853046041062fc9c01fafb /library/cpp/getopt/ut/last_getopt_ut.cpp | |
parent | 27222438aa0c42e5d9f8323344ee0cf8909491c3 (diff) | |
download | ydb-b99e8e1b6e3468f81111414c917adc2d334b2c3c.tar.gz |
Restoring authorship annotation for <kaa@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.cpp | 20 |
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..086cbac9c6 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"); |