aboutsummaryrefslogtreecommitdiffstats
path: root/util/random/random_ut.cpp
diff options
context:
space:
mode:
authoryazevnul <yazevnul@yandex-team.ru>2022-02-10 16:46:46 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:46:46 +0300
commit8cbc307de0221f84c80c42dcbe07d40727537e2c (patch)
tree625d5a673015d1df891e051033e9fcde5c7be4e5 /util/random/random_ut.cpp
parent30d1ef3941e0dc835be7609de5ebee66958f215a (diff)
downloadydb-8cbc307de0221f84c80c42dcbe07d40727537e2c.tar.gz
Restoring authorship annotation for <yazevnul@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'util/random/random_ut.cpp')
-rw-r--r--util/random/random_ut.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/util/random/random_ut.cpp b/util/random/random_ut.cpp
index 30427676f3..1f52efe2fa 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>()) {