diff options
author | Ruslan Kovalev <ruslan.a.kovalev@gmail.com> | 2022-02-10 16:46:45 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:46:45 +0300 |
commit | 9123176b341b6f2658cff5132482b8237c1416c8 (patch) | |
tree | 49e222ea1c5804306084bb3ae065bb702625360f /util/random/shuffle_ut.cpp | |
parent | 59e19371de37995fcb36beb16cd6ec030af960bc (diff) | |
download | ydb-9123176b341b6f2658cff5132482b8237c1416c8.tar.gz |
Restoring authorship annotation for Ruslan Kovalev <ruslan.a.kovalev@gmail.com>. Commit 2 of 2.
Diffstat (limited to 'util/random/shuffle_ut.cpp')
-rw-r--r-- | util/random/shuffle_ut.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/util/random/shuffle_ut.cpp b/util/random/shuffle_ut.cpp index 4d2415557e..87cbae94c0 100644 --- a/util/random/shuffle_ut.cpp +++ b/util/random/shuffle_ut.cpp @@ -3,23 +3,23 @@ #include "mersenne.h" #include <library/cpp/testing/unittest/registar.h> - -#include <util/generic/ylimits.h> - + +#include <util/generic/ylimits.h> + Y_UNIT_TEST_SUITE(TRandUtilsTest) { template <typename... A> static void TestRange(A&&... args) { TString s0, s1; ShuffleRange(s1, args...); - s1 = "0"; + s1 = "0"; ShuffleRange(s1, args...); - s1 = "01"; + s1 = "01"; ShuffleRange(s1, args...); - s1 = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"; - s0 = s1.copy(); + s1 = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"; + s0 = s1.copy(); ShuffleRange(s1, args...); - UNIT_ASSERT(s0 != s1); // if shuffle does work, chances it will fail are 1 to 64!. - } + UNIT_ASSERT(s0 != s1); // if shuffle does work, chances it will fail are 1 to 64!. + } template <typename... A> static void TestIter(A&&... args) { @@ -72,4 +72,4 @@ Y_UNIT_TEST_SUITE(TRandUtilsTest) { TestIter(prng); } -} +} |