diff options
author | yazevnul <yazevnul@yandex-team.ru> | 2022-02-10 16:46:46 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:46:46 +0300 |
commit | 8cbc307de0221f84c80c42dcbe07d40727537e2c (patch) | |
tree | 625d5a673015d1df891e051033e9fcde5c7be4e5 /util/random/fast_ut.cpp | |
parent | 30d1ef3941e0dc835be7609de5ebee66958f215a (diff) | |
download | ydb-8cbc307de0221f84c80c42dcbe07d40727537e2c.tar.gz |
Restoring authorship annotation for <yazevnul@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'util/random/fast_ut.cpp')
-rw-r--r-- | util/random/fast_ut.cpp | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/util/random/fast_ut.cpp b/util/random/fast_ut.cpp index 60994a98b0..a513a973b1 100644 --- a/util/random/fast_ut.cpp +++ b/util/random/fast_ut.cpp @@ -2,8 +2,8 @@ #include <library/cpp/testing/unittest/registar.h> -Y_UNIT_TEST_SUITE(TTestFastRng) { - Y_UNIT_TEST(Test1) { +Y_UNIT_TEST_SUITE(TTestFastRng) { + Y_UNIT_TEST(Test1) { TFastRng32 rng1(17, 0); TReallyFastRng32 rng2(17); @@ -35,15 +35,15 @@ Y_UNIT_TEST_SUITE(TTestFastRng) { 75, }; - Y_UNIT_TEST(Test2) { + Y_UNIT_TEST(Test2) { TFastRng64 rng(0, 1, 2, 3); - for (auto& i : R1) { - UNIT_ASSERT_VALUES_EQUAL(rng.Uniform(100u), i); + for (auto& i : R1) { + UNIT_ASSERT_VALUES_EQUAL(rng.Uniform(100u), i); } } - Y_UNIT_TEST(TestAdvance) { + Y_UNIT_TEST(TestAdvance) { TReallyFastRng32 rng1(17); TReallyFastRng32 rng2(17); for (size_t i = 0; i < 100; i++) { @@ -61,7 +61,7 @@ Y_UNIT_TEST_SUITE(TTestFastRng) { UNIT_ASSERT_VALUES_EQUAL(rng3.GenRand(), rng4.GenRand()); } - Y_UNIT_TEST(TestAdvanceBoundaries) { + Y_UNIT_TEST(TestAdvanceBoundaries) { TReallyFastRng32 rng1(17); TReallyFastRng32 rng2(17); TReallyFastRng32 rng3(17); @@ -71,7 +71,7 @@ Y_UNIT_TEST_SUITE(TTestFastRng) { UNIT_ASSERT_VALUES_EQUAL(rng1.GenRand(), rng3.GenRand()); } - Y_UNIT_TEST(TestCopy) { + Y_UNIT_TEST(TestCopy) { TReallyFastRng32 r1(1); TReallyFastRng32 r2(2); @@ -82,13 +82,13 @@ Y_UNIT_TEST_SUITE(TTestFastRng) { UNIT_ASSERT_VALUES_EQUAL(r1.GenRand(), r2.GenRand()); } - Y_UNIT_TEST(Test3) { + Y_UNIT_TEST(Test3) { TFastRng64 rng(17); UNIT_ASSERT_VALUES_EQUAL(rng.GenRand(), ULL(14895365814383052362)); } - Y_UNIT_TEST(TestCompile) { + Y_UNIT_TEST(TestCompile) { TFastRng<ui32> rng1(1); TFastRng<ui64> rng2(2); TFastRng<size_t> rng3(3); @@ -103,14 +103,14 @@ Y_UNIT_TEST_SUITE(TTestFastRng) { "But apparently I made a blunder here -" "Doha does not warm ... Absolutely."; - Y_UNIT_TEST(TestStreamCtor1) { + Y_UNIT_TEST(TestStreamCtor1) { TMemoryInput mi(RNG_DATA, strlen(RNG_DATA)); TFastRng<ui32> rng(mi); UNIT_ASSERT_VALUES_EQUAL(rng.GenRand(), 1449109131u); } - Y_UNIT_TEST(TestStreamCtor2) { + Y_UNIT_TEST(TestStreamCtor2) { TMemoryInput mi(RNG_DATA, strlen(RNG_DATA)); TFastRng<ui64> rng(mi); |