From 4f157cbc06bacaa2cf7db7041f89e8fe29dedb1b Mon Sep 17 00:00:00 2001 From: Christopher Kormanyos Date: Wed, 28 Jul 2021 11:03:59 +0200 Subject: [PATCH] Tweak the test parameters --- test/test_cpp_double_float_arithmetic.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/test/test_cpp_double_float_arithmetic.cpp b/test/test_cpp_double_float_arithmetic.cpp index 4106f81c..05057976 100644 --- a/test/test_cpp_double_float_arithmetic.cpp +++ b/test/test_cpp_double_float_arithmetic.cpp @@ -54,7 +54,7 @@ struct control static constexpr int max_exponent10 = std::numeric_limits::max_exponent10; using double_float_type = boost::multiprecision::number, boost::multiprecision::et_off>; - using control_float_type = boost::multiprecision::number, boost::multiprecision::et_off>; + using control_float_type = boost::multiprecision::number::digits10) + 1>, boost::multiprecision::et_off>; using random_engine_type = std::linear_congruential_engine; @@ -129,7 +129,7 @@ struct control dist_exp ( 0, - unsigned(float(max_exponent10) * 0.30F) + unsigned(float(max_exponent10) * 0.15F) ); std::string str_exp = ((exp_is_neg == false) ? "E+" : "E-"); @@ -358,9 +358,10 @@ int main() result_is_ok &= local::test_arithmetic(test_cases_built_in); result_is_ok &= local::test_arithmetic(test_cases_built_in); //result_is_ok &= local::test_arithmetic(test_cases_built_in); - //result_is_ok &= local::test_arithmetic>(test_cases_built_in); #ifdef BOOST_MATH_USE_FLOAT128 result_is_ok &= local::test_arithmetic(test_cases_float128); +#else + (void) test_cases_float128; #endif return (result_is_ok ? 0 : -1);