diff options
author | sukhoi <sukhoi@yandex-team.ru> | 2022-02-10 16:51:35 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:51:35 +0300 |
commit | 31b383c710ee84e3470e22bcb85863a46acd951b (patch) | |
tree | 5d5cb817648f650d76cf1076100726fd9b8448e8 /util/generic/algorithm_ut.cpp | |
parent | 01b069525b0643380d885e1549f9d1f1ecdfbb24 (diff) | |
download | ydb-31b383c710ee84e3470e22bcb85863a46acd951b.tar.gz |
Restoring authorship annotation for <sukhoi@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'util/generic/algorithm_ut.cpp')
-rw-r--r-- | util/generic/algorithm_ut.cpp | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/util/generic/algorithm_ut.cpp b/util/generic/algorithm_ut.cpp index 1b6f8595dc9..8d732fcc0cf 100644 --- a/util/generic/algorithm_ut.cpp +++ b/util/generic/algorithm_ut.cpp @@ -224,7 +224,7 @@ Y_UNIT_TEST_SUITE(TAlgorithm) { TVector<int> empty; UNIT_ASSERT_EQUAL(NPOS, FindIndex(empty, 0)); } - + Y_UNIT_TEST(FindIndexIfTest) { TVectorNoCopy v; v.push_back(1); @@ -248,23 +248,23 @@ Y_UNIT_TEST_SUITE(TAlgorithm) { } Y_UNIT_TEST(SortUniqueTest) { - { + { TVector<TString> v; - SortUnique(v); + SortUnique(v); UNIT_ASSERT_EQUAL(v, TVector<TString>()); - } - - { - const char* ar[] = {"345", "3", "123", "2", "23", "3", "2"}; + } + + { + const char* ar[] = {"345", "3", "123", "2", "23", "3", "2"}; TVector<TString> v(ar, ar + Y_ARRAY_SIZE(ar)); - SortUnique(v); - - const char* suAr[] = {"123", "2", "23", "3", "345"}; + SortUnique(v); + + const char* suAr[] = {"123", "2", "23", "3", "345"}; TVector<TString> suV(suAr, suAr + Y_ARRAY_SIZE(suAr)); - - UNIT_ASSERT_EQUAL(v, suV); - } - } + + UNIT_ASSERT_EQUAL(v, suV); + } + } Y_UNIT_TEST(EraseTest) { TVector<int> data = {5, 4, 3, 2, 1, 0}; |