diff options
author | risenberg <risenberg@yandex-team.ru> | 2022-02-10 16:49:47 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:49:47 +0300 |
commit | ec551e975caf33bd88e2803b55464cad608e2441 (patch) | |
tree | d2f84f5b97ecb84201832f831b261817be37fbfe /util/string | |
parent | 6a705ee267e43301156c202a4b371d47ddd4dd4f (diff) | |
download | ydb-ec551e975caf33bd88e2803b55464cad608e2441.tar.gz |
Restoring authorship annotation for <risenberg@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'util/string')
-rw-r--r-- | util/string/cast_ut.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/util/string/cast_ut.cpp b/util/string/cast_ut.cpp index 033450c38c..adc9be1ab5 100644 --- a/util/string/cast_ut.cpp +++ b/util/string/cast_ut.cpp @@ -80,12 +80,12 @@ struct TRet { template <class B> inline void CheckTryFail(B v) { - static const A defaultV = 42; + static const A defaultV = 42; A convV = defaultV; // to check that original value is not trashed on bad cast UNIT_ASSERT_VALUES_EQUAL(TryFromString<A>(ToString(v), convV), false); // char - UNIT_ASSERT_VALUES_EQUAL(defaultV, convV); + UNIT_ASSERT_VALUES_EQUAL(defaultV, convV); UNIT_ASSERT_VALUES_EQUAL(TryFromString<A>(ToWtring(v), convV), false); // wide char - UNIT_ASSERT_VALUES_EQUAL(defaultV, convV); + UNIT_ASSERT_VALUES_EQUAL(defaultV, convV); TRY_HEX_MACROS_MAP(TRY_FAIL_HEX_CHECK, A, v, convV, defaultV); } @@ -112,10 +112,10 @@ struct TRet<bool> { template <class B> inline void CheckTryFail(B v) { - static const bool defaultV = false; - bool convV = defaultV; + static const bool defaultV = false; + bool convV = defaultV; UNIT_ASSERT_VALUES_EQUAL(TryFromString<bool>(ToString(v), convV), false); - UNIT_ASSERT_VALUES_EQUAL(defaultV, convV); + UNIT_ASSERT_VALUES_EQUAL(defaultV, convV); } }; |