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 | |
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')
-rw-r--r-- | library/cpp/binsaver/bin_saver.h | 6 | ||||
-rw-r--r-- | library/cpp/getopt/ut/last_getopt_ut.cpp | 20 | ||||
-rw-r--r-- | library/cpp/testing/unittest/registar.h | 8 |
3 files changed, 17 insertions, 17 deletions
diff --git a/library/cpp/binsaver/bin_saver.h b/library/cpp/binsaver/bin_saver.h index 412424889f..f4f194ed0c 100644 --- a/library/cpp/binsaver/bin_saver.h +++ b/library/cpp/binsaver/bin_saver.h @@ -126,7 +126,7 @@ private: if (nSize > 0) DataChunk(&data[0], sizeof(T) * nSize); } - + template <class AM> void DoAnyMap(AM& data) { if (IsReading()) { @@ -346,8 +346,8 @@ public: template <class T1, class T2, class T3, class T4> int Add(const chunk_id, TMap<T1, T2, T3, T4>* pMap) { DoAnyMap(*pMap); - return 0; - } + return 0; + } template <class T1, class T2, class T3, class T4, class T5> int Add(const chunk_id, THashMap<T1, T2, T3, T4, T5>* pHash) { DoAnyMap(*pHash); 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"); diff --git a/library/cpp/testing/unittest/registar.h b/library/cpp/testing/unittest/registar.h index 44517a0092..e755969d73 100644 --- a/library/cpp/testing/unittest/registar.h +++ b/library/cpp/testing/unittest/registar.h @@ -458,7 +458,7 @@ public: \ } \ } while (false) -//strings +//strings #define UNIT_ASSERT_STRINGS_UNEQUAL_C(A, B, C) \ do { \ const TString _a(A); \ @@ -467,10 +467,10 @@ public: \ auto&& msg = Sprintf("%s == %s %s", ToString(_a).data(), ToString(_b).data(), (::TStringBuilder() << C).data()); \ UNIT_FAIL_IMPL("strings unequal assertion failed", msg); \ } \ - } while (false) - -#define UNIT_ASSERT_STRINGS_UNEQUAL(A, B) UNIT_ASSERT_STRINGS_UNEQUAL_C(A, B, "") + } while (false) +#define UNIT_ASSERT_STRINGS_UNEQUAL(A, B) UNIT_ASSERT_STRINGS_UNEQUAL_C(A, B, "") + //bool #define UNIT_ASSERT_C(A, C) \ do { \ |