diff options
author | gerich <gerich@yandex-team.ru> | 2022-02-10 16:52:07 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:52:07 +0300 |
commit | 69d77def656f0edd1eead9f5a73940233255e5db (patch) | |
tree | ab7fbbf3253d4c0e2793218f09378908beb025fb /util/generic/algorithm_ut.cpp | |
parent | 7e04cc6298e4641e41f046bfb2cfd9b3020cd1cf (diff) | |
download | ydb-69d77def656f0edd1eead9f5a73940233255e5db.tar.gz |
Restoring authorship annotation for <gerich@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'util/generic/algorithm_ut.cpp')
-rw-r--r-- | util/generic/algorithm_ut.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/util/generic/algorithm_ut.cpp b/util/generic/algorithm_ut.cpp index 2de5183a27..8d732fcc0c 100644 --- a/util/generic/algorithm_ut.cpp +++ b/util/generic/algorithm_ut.cpp @@ -623,11 +623,11 @@ Y_UNIT_TEST_SUITE(TAlgorithm) { return -1.0 * x; }), 1); - int arrayMutable[] = {1, 2, 5, 3, 4, 5}; - auto maxPtr = MaxElementBy(arrayMutable, [](int x) { return x; }); - *maxPtr += 100; - UNIT_ASSERT_VALUES_EQUAL(*maxPtr, 105); - + int arrayMutable[] = {1, 2, 5, 3, 4, 5}; + auto maxPtr = MaxElementBy(arrayMutable, [](int x) { return x; }); + *maxPtr += 100; + UNIT_ASSERT_VALUES_EQUAL(*maxPtr, 105); + auto identity = [](char x) { return x; }; @@ -649,11 +649,11 @@ Y_UNIT_TEST_SUITE(TAlgorithm) { return -x; }), 5); - int arrayMutable[] = {1, 2, 5, 3, 4, 5}; - auto minPtr = MinElementBy(arrayMutable, [](int x) { return x; }); - *minPtr += 100; - UNIT_ASSERT_VALUES_EQUAL(*minPtr, 101); - + int arrayMutable[] = {1, 2, 5, 3, 4, 5}; + auto minPtr = MinElementBy(arrayMutable, [](int x) { return x; }); + *minPtr += 100; + UNIT_ASSERT_VALUES_EQUAL(*minPtr, 101); + auto identity = [](char x) { return x; }; |