diff options
author | toropov <toropov@yandex-team.ru> | 2022-02-10 16:50:52 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:50:52 +0300 |
commit | 4b0fc373fedd49d8651b5fba2371df503910c126 (patch) | |
tree | 3df2567cdbdcf5ca9a851490d56ee5250aef1b79 /util/generic | |
parent | aae523fee7a5dc0b76bc9ef82b5df543ac40984a (diff) | |
download | ydb-4b0fc373fedd49d8651b5fba2371df503910c126.tar.gz |
Restoring authorship annotation for <toropov@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'util/generic')
-rw-r--r-- | util/generic/is_in.h | 6 | ||||
-rw-r--r-- | util/generic/is_in_ut.cpp | 14 |
2 files changed, 10 insertions, 10 deletions
diff --git a/util/generic/is_in.h b/util/generic/is_in.h index 4f175ea5eb..8a6f585f53 100644 --- a/util/generic/is_in.h +++ b/util/generic/is_in.h @@ -22,9 +22,9 @@ namespace NIsInHelper { template <class C, class T, bool isAssoc> struct TIsInTraits { static bool IsIn(const C& c, const T& e) { - using std::begin; - using std::end; - return ::IsIn(begin(c), end(c), e); + using std::begin; + using std::end; + return ::IsIn(begin(c), end(c), e); } }; diff --git a/util/generic/is_in_ut.cpp b/util/generic/is_in_ut.cpp index c668bce807..17a9339095 100644 --- a/util/generic/is_in_ut.cpp +++ b/util/generic/is_in_ut.cpp @@ -104,13 +104,13 @@ Y_UNIT_TEST_SUITE(TIsIn) { UNIT_ASSERT(IsIn(TVector<TStringBuf>({"a", "b", "c"}), b.data())); UNIT_ASSERT(IsIn(TVector<TStringBuf>({"a", "b", "c"}), "b")); } - - Y_UNIT_TEST(IsInArrayTest) { + + Y_UNIT_TEST(IsInArrayTest) { const TString array[] = {"a", "b", "d"}; - - UNIT_ASSERT(IsIn(array, "a")); - UNIT_ASSERT(IsIn(array, TString("b"))); - UNIT_ASSERT(!IsIn(array, "c")); + + UNIT_ASSERT(IsIn(array, "a")); + UNIT_ASSERT(IsIn(array, TString("b"))); + UNIT_ASSERT(!IsIn(array, "c")); UNIT_ASSERT(IsIn(array, TStringBuf("d"))); - } + } } |