diff options
author | blaze <blaze@yandex-team.ru> | 2022-02-10 16:50:31 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:50:31 +0300 |
commit | 6813864abdb5ce336cde7a2e5cd80232ba54eef1 (patch) | |
tree | 4d210665182fb648da2838c38dba04bab6878dc1 /util/random/shuffle_ut.cpp | |
parent | 6e1e62cdffc32768898ccdfd24e046d8b929a45b (diff) | |
download | ydb-6813864abdb5ce336cde7a2e5cd80232ba54eef1.tar.gz |
Restoring authorship annotation for <blaze@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'util/random/shuffle_ut.cpp')
-rw-r--r-- | util/random/shuffle_ut.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/util/random/shuffle_ut.cpp b/util/random/shuffle_ut.cpp index 87cbae94c0..b8a7a18138 100644 --- a/util/random/shuffle_ut.cpp +++ b/util/random/shuffle_ut.cpp @@ -1,6 +1,6 @@ #include "fast.h" #include "shuffle.h" -#include "mersenne.h" +#include "mersenne.h" #include <library/cpp/testing/unittest/registar.h> @@ -32,18 +32,18 @@ Y_UNIT_TEST_SUITE(TRandUtilsTest) { Shuffle(b, e, args...); }; - s1 = "0"; + s1 = "0"; f(); - s1 = "01"; + s1 = "01"; f(); - s1 = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"; - s0 = s1.copy(); + s1 = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"; + s0 = s1.copy(); f(); - 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!. + } Y_UNIT_TEST(TestShuffle) { TestRange(); @@ -56,10 +56,10 @@ Y_UNIT_TEST_SUITE(TRandUtilsTest) { } Y_UNIT_TEST(TestShuffleMersenne32) { - TMersenne<ui32> prng(24); + TMersenne<ui32> prng(24); TestIter(prng); - } + } Y_UNIT_TEST(TestShuffleFast32) { TFastRng32 prng(24, 0); |