From 4c8b3ce290693fc4c53347966019027830ef5ee1 Mon Sep 17 00:00:00 2001 From: Mateusz Pusz Date: Wed, 3 Aug 2022 13:12:24 +0200 Subject: [PATCH] test: Commented out `ceil` unit test enabled as it works correctly now --- test/unit_test/runtime/math_test.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/unit_test/runtime/math_test.cpp b/test/unit_test/runtime/math_test.cpp index 22464106..2f4c223f 100644 --- a/test/unit_test/runtime/math_test.cpp +++ b/test/unit_test/runtime/math_test.cpp @@ -187,10 +187,10 @@ TEST_CASE("ceil functions", "[ceil]") { REQUIRE(ceil(1999._q_ms) == 2_q_s); } - // TODO does not work, probably due to a bug in fpow10() see #311 - // SECTION ("ceil -1000. milliseconds with target unit second should be -1 second") { - // REQUIRE(ceil(-1000._q_ms) == -1_q_s); - // } + SECTION("ceil -1000. milliseconds with target unit second should be -1 second") + { + REQUIRE(ceil(-1000._q_ms) == -1_q_s); + } SECTION("ceil -999. milliseconds with target unit second should be 0 seconds") { REQUIRE(ceil(-999._q_ms) == 0_q_s);