summaryrefslogtreecommitdiffstats
path: root/util/generic/ylimits_ut.cpp
diff options
context:
space:
mode:
authororivej <[email protected]>2022-02-10 16:45:01 +0300
committerDaniil Cherednik <[email protected]>2022-02-10 16:45:01 +0300
commit2d37894b1b037cf24231090eda8589bbb44fb6fc (patch)
treebe835aa92c6248212e705f25388ebafcf84bc7a1 /util/generic/ylimits_ut.cpp
parent718c552901d703c502ccbefdfc3c9028d608b947 (diff)
Restoring authorship annotation for <[email protected]>. Commit 2 of 2.
Diffstat (limited to 'util/generic/ylimits_ut.cpp')
-rw-r--r--util/generic/ylimits_ut.cpp30
1 files changed, 15 insertions, 15 deletions
diff --git a/util/generic/ylimits_ut.cpp b/util/generic/ylimits_ut.cpp
index 029905ed558..f1b3c6858cf 100644
--- a/util/generic/ylimits_ut.cpp
+++ b/util/generic/ylimits_ut.cpp
@@ -10,13 +10,13 @@ class TLimitTest: public TTestBase {
UNIT_TEST_SUITE(TLimitTest);
UNIT_TEST(TestLimits);
UNIT_TEST(TestNan);
- UNIT_TEST(TestMaxDouble);
+ UNIT_TEST(TestMaxDouble);
UNIT_TEST_SUITE_END();
protected:
void TestLimits();
void TestNan();
- void TestMaxDouble();
+ void TestMaxDouble();
};
UNIT_TEST_SUITE_REGISTRATION(TLimitTest);
@@ -142,16 +142,16 @@ void TLimitTest::TestNan() {
using long_double = long double;
UNIT_ASSERT(::TestNan(long_double()));
}
-
-void TLimitTest::TestMaxDouble() {
- UNIT_ASSERT_VALUES_EQUAL(MaxCeil<i8>(), 127.0);
- UNIT_ASSERT_VALUES_EQUAL(MaxFloor<i8>(), 127.0);
- UNIT_ASSERT_VALUES_EQUAL(MaxCeil<ui8>(), 255.0);
- UNIT_ASSERT_VALUES_EQUAL(MaxFloor<ui8>(), 255.0);
- double d = 1ull << 63;
- UNIT_ASSERT_VALUES_EQUAL(MaxCeil<i64>(), d);
- UNIT_ASSERT_VALUES_EQUAL(MaxFloor<i64>(), nextafter(d, 0));
- d *= 2;
- UNIT_ASSERT_VALUES_EQUAL(MaxCeil<ui64>(), d);
- UNIT_ASSERT_VALUES_EQUAL(MaxFloor<ui64>(), nextafter(d, 0));
-}
+
+void TLimitTest::TestMaxDouble() {
+ UNIT_ASSERT_VALUES_EQUAL(MaxCeil<i8>(), 127.0);
+ UNIT_ASSERT_VALUES_EQUAL(MaxFloor<i8>(), 127.0);
+ UNIT_ASSERT_VALUES_EQUAL(MaxCeil<ui8>(), 255.0);
+ UNIT_ASSERT_VALUES_EQUAL(MaxFloor<ui8>(), 255.0);
+ double d = 1ull << 63;
+ UNIT_ASSERT_VALUES_EQUAL(MaxCeil<i64>(), d);
+ UNIT_ASSERT_VALUES_EQUAL(MaxFloor<i64>(), nextafter(d, 0));
+ d *= 2;
+ UNIT_ASSERT_VALUES_EQUAL(MaxCeil<ui64>(), d);
+ UNIT_ASSERT_VALUES_EQUAL(MaxFloor<ui64>(), nextafter(d, 0));
+}