diff options
author | yazevnul <yazevnul@yandex-team.ru> | 2022-02-10 16:46:48 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:46:48 +0300 |
commit | 9abfb1a53b7f7b791444d1378e645d8fad9b06ed (patch) | |
tree | 49e222ea1c5804306084bb3ae065bb702625360f /util/random/random_ut.cpp | |
parent | 8cbc307de0221f84c80c42dcbe07d40727537e2c (diff) | |
download | ydb-9abfb1a53b7f7b791444d1378e645d8fad9b06ed.tar.gz |
Restoring authorship annotation for <yazevnul@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'util/random/random_ut.cpp')
-rw-r--r-- | util/random/random_ut.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/util/random/random_ut.cpp b/util/random/random_ut.cpp index 1f52efe2fa..30427676f3 100644 --- a/util/random/random_ut.cpp +++ b/util/random/random_ut.cpp @@ -10,7 +10,7 @@ static inline void AssertRange(T v, T r1, T r2) { UNIT_ASSERT(v < r2); } -Y_UNIT_TEST_SUITE(TRandomNumberTest) { +Y_UNIT_TEST_SUITE(TRandomNumberTest) { template <typename T> void TestAll(T n) { for (T i = 0; i < n; ++i) { @@ -49,32 +49,32 @@ Y_UNIT_TEST_SUITE(TRandomNumberTest) { TestSome<T>(Max<T>() - 22222); } - Y_UNIT_TEST(TestWithLimit) { + Y_UNIT_TEST(TestWithLimit) { TestType<unsigned short>(); TestType<unsigned int>(); TestType<unsigned long>(); TestType<unsigned long long>(); } - Y_UNIT_TEST(TestRandomNumberFloat) { + Y_UNIT_TEST(TestRandomNumberFloat) { for (size_t i = 0; i < 1000; ++i) { AssertRange<float>(RandomNumber<float>(), 0.0, 1.0); } } - Y_UNIT_TEST(TestRandomNumberDouble) { + Y_UNIT_TEST(TestRandomNumberDouble) { for (size_t i = 0; i < 1000; ++i) { AssertRange<double>(RandomNumber<double>(), 0.0, 1.0); } } - Y_UNIT_TEST(TestRandomNumberLongDouble) { + Y_UNIT_TEST(TestRandomNumberLongDouble) { for (size_t i = 0; i < 1000; ++i) { AssertRange<long double>(RandomNumber<long double>(), 0.0, 1.0); } } - Y_UNIT_TEST(TestBoolean) { + Y_UNIT_TEST(TestBoolean) { while (RandomNumber<bool>()) { } while (!RandomNumber<bool>()) { |