diff options
author | Anton Samokhvalov <pg83@yandex.ru> | 2022-02-10 16:45:15 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:45:15 +0300 |
commit | 72cb13b4aff9bc9cf22e49251bc8fd143f82538f (patch) | |
tree | da2c34829458c7d4e74bdfbdf85dff449e9e7fb8 /util/generic/is_in_ut.cpp | |
parent | 778e51ba091dc39e7b7fcab2b9cf4dbedfb6f2b5 (diff) | |
download | ydb-72cb13b4aff9bc9cf22e49251bc8fd143f82538f.tar.gz |
Restoring authorship annotation for Anton Samokhvalov <pg83@yandex.ru>. Commit 1 of 2.
Diffstat (limited to 'util/generic/is_in_ut.cpp')
-rw-r--r-- | util/generic/is_in_ut.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/util/generic/is_in_ut.cpp b/util/generic/is_in_ut.cpp index c668bce807..77a0a4bd2c 100644 --- a/util/generic/is_in_ut.cpp +++ b/util/generic/is_in_ut.cpp @@ -1,18 +1,18 @@ #include <library/cpp/testing/unittest/registar.h> -#include "algorithm.h" -#include "hash.h" -#include "hash_set.h" -#include "is_in.h" -#include "map.h" -#include "set.h" -#include "strbuf.h" +#include "algorithm.h" +#include "hash.h" +#include "hash_set.h" +#include "is_in.h" +#include "map.h" +#include "set.h" +#include "strbuf.h" #include "string.h" Y_UNIT_TEST_SUITE(TIsIn) { - template <class TCont, class T> + template <class TCont, class T> void TestIsInWithCont(const T& elem) { - class TMapMock: public TCont { + class TMapMock: public TCont { public: typename TCont::const_iterator find(const typename TCont::key_type& k) const { ++FindCalled; @@ -106,7 +106,7 @@ Y_UNIT_TEST_SUITE(TIsIn) { } Y_UNIT_TEST(IsInArrayTest) { - const TString array[] = {"a", "b", "d"}; + const TString array[] = {"a", "b", "d"}; UNIT_ASSERT(IsIn(array, "a")); UNIT_ASSERT(IsIn(array, TString("b"))); |