aboutsummaryrefslogtreecommitdiffstats
path: root/util/random/normal_ut.cpp
diff options
context:
space:
mode:
authoryazevnul <yazevnul@yandex-team.ru>2022-02-10 16:46:48 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:46:48 +0300
commit9abfb1a53b7f7b791444d1378e645d8fad9b06ed (patch)
tree49e222ea1c5804306084bb3ae065bb702625360f /util/random/normal_ut.cpp
parent8cbc307de0221f84c80c42dcbe07d40727537e2c (diff)
downloadydb-9abfb1a53b7f7b791444d1378e645d8fad9b06ed.tar.gz
Restoring authorship annotation for <yazevnul@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'util/random/normal_ut.cpp')
-rw-r--r--util/random/normal_ut.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/util/random/normal_ut.cpp b/util/random/normal_ut.cpp
index 23311c8079..42b6cc4ba2 100644
--- a/util/random/normal_ut.cpp
+++ b/util/random/normal_ut.cpp
@@ -7,8 +7,8 @@
#include <functional>
-Y_UNIT_TEST_SUITE(TestNormalDistribution) {
- Y_UNIT_TEST(TestDefined) {
+Y_UNIT_TEST_SUITE(TestNormalDistribution) {
+ Y_UNIT_TEST(TestDefined) {
volatile auto x = NormalRandom<float>(0, 1) + NormalRandom<double>(0, 1) + NormalRandom<long double>(0, 1);
(void)x;
@@ -45,7 +45,7 @@ Y_UNIT_TEST_SUITE(TestNormalDistribution) {
UNIT_ASSERT_DOUBLES_EQUAL(d, dd, (d + 1) * 0.05);
}
- Y_UNIT_TEST(Test1) {
+ Y_UNIT_TEST(Test1) {
TestMD<float>(&StdNormalRandom<float>, 0, 1);
TestMD<double>(&StdNormalRandom<double>, 0, 1);
TestMD<long double>(&StdNormalRandom<long double>, 0, 1);
@@ -67,13 +67,13 @@ Y_UNIT_TEST_SUITE(TestNormalDistribution) {
};
}
- Y_UNIT_TEST(Test2) {
+ Y_UNIT_TEST(Test2) {
TestMD<float>(GenFunc1<float>(2, 3), 2, 3);
TestMD<double>(GenFunc1<double>(3, 4), 3, 4);
TestMD<long double>(GenFunc1<long double>(4, 5), 4, 5);
}
- Y_UNIT_TEST(Test3) {
+ Y_UNIT_TEST(Test3) {
TestMD<float>(GenFunc2<float>(20, 30), 20, 30);
TestMD<double>(GenFunc2<double>(30, 40), 30, 40);
TestMD<long double>(GenFunc2<long double>(40, 50), 40, 50);