aboutsummaryrefslogtreecommitdiffstats
path: root/util/generic/ymath_ut.cpp
diff options
context:
space:
mode:
authorjacob <jacob@yandex-team.ru>2022-02-10 16:49:53 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:49:53 +0300
commit1bf57447b8a115cd60bb6f8509b9b148e1b6debd (patch)
treeb9f3ce9adae968ad4924f36058b631b58ef03e57 /util/generic/ymath_ut.cpp
parent3bf10d3f40b502d181ef52f5c4602c98cb135360 (diff)
downloadydb-1bf57447b8a115cd60bb6f8509b9b148e1b6debd.tar.gz
Restoring authorship annotation for <jacob@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'util/generic/ymath_ut.cpp')
-rw-r--r--util/generic/ymath_ut.cpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/util/generic/ymath_ut.cpp b/util/generic/ymath_ut.cpp
index 29190b55eb4..f7ff2298ba4 100644
--- a/util/generic/ymath_ut.cpp
+++ b/util/generic/ymath_ut.cpp
@@ -149,19 +149,19 @@ void TMathTest::TestErf() {
UNIT_ASSERT_DOUBLES_EQUAL(f, values[i], 1e-7);
}
}
-
-void TMathTest::TestLogGamma() {
- double curVal = 0.0;
- for (int i = 1; i <= 20; i++) {
- curVal += log((double)i);
+
+void TMathTest::TestLogGamma() {
+ double curVal = 0.0;
+ for (int i = 1; i <= 20; i++) {
+ curVal += log((double)i);
UNIT_ASSERT_DOUBLES_EQUAL(curVal, LogGamma((double)(i + 1)), 1e-6);
- }
- curVal = log(M_PI) / 2.0;
- for (int i = 1; i <= 20; i++) {
- UNIT_ASSERT_DOUBLES_EQUAL(curVal, LogGamma(i - 0.5), 1e-6);
- curVal += log(i - 0.5);
- }
-}
+ }
+ curVal = log(M_PI) / 2.0;
+ for (int i = 1; i <= 20; i++) {
+ UNIT_ASSERT_DOUBLES_EQUAL(curVal, LogGamma(i - 0.5), 1e-6);
+ curVal += log(i - 0.5);
+ }
+}
void TMathTest::TestAbs() {
UNIT_ASSERT_VALUES_EQUAL(Abs(1), 1);