From abd3c2f81e076bbf3c3376655422da5629e12d35 Mon Sep 17 00:00:00 2001 From: Joao Paulo Magalhaes Date: Fri, 20 Nov 2020 09:45:36 +0000 Subject: [PATCH] powers of ten test: do not fail when pow() is broken - merely warn --- tests/basictest.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/basictest.cpp b/tests/basictest.cpp index d0a7d48..2df1b60 100644 --- a/tests/basictest.cpp +++ b/tests/basictest.cpp @@ -192,7 +192,7 @@ static const double testing_power_of_ten[] = { TEST_CASE("powers_of_ten") { char buf[1024]; - CHECK_MESSAGE(1e-308 == std::pow(10, -308), "On your system, the pow function is busted. Sorry about that."); + WARN_MESSAGE(1e-308 == std::pow(10, -308), "On your system, the pow function is busted. Sorry about that."); bool is_pow_correct{1e-308 == std::pow(10,-308)}; // large negative values should be zero. int start_point = is_pow_correct ? -1000 : -307;