From 4894e5428cc71808c33a624cfc01c703d0643b44 Mon Sep 17 00:00:00 2001 From: jatin Date: Wed, 22 Nov 2023 23:21:49 -0800 Subject: [PATCH] More test fixing for Linux --- test/src/pow_approx_test.cpp | 18 +++--------------- 1 file changed, 3 insertions(+), 15 deletions(-) diff --git a/test/src/pow_approx_test.cpp b/test/src/pow_approx_test.cpp index 4677c12..f5b1efd 100644 --- a/test/src/pow_approx_test.cpp +++ b/test/src/pow_approx_test.cpp @@ -31,11 +31,7 @@ void test_approx (const auto& all_floats, const auto& y_exact, auto&& f_approx, TEMPLATE_TEST_CASE ("Exp Approx Test", "", float, double) { -#if ! defined(WIN32) - static const auto all_floats = test_helpers::all_32_bit_floats (-10.0f, 10.0f, 1.0e-2f); -#else - static const auto all_floats = test_helpers::all_32_bit_floats (-10.0f, 10.0f, 1.0e-1f); -#endif + const auto all_floats = test_helpers::all_32_bit_floats (-10.0f, 10.0f, 1.0e-1f); const auto y_exact = test_helpers::compute_all (all_floats, [](auto x) { @@ -90,11 +86,7 @@ TEMPLATE_TEST_CASE ("Exp Approx Test", "", float, double) TEMPLATE_TEST_CASE ("Exp2 Approx Test", "", float, double) { -#if ! defined(WIN32) - static const auto all_floats = test_helpers::all_32_bit_floats (-10.0f, 10.0f, 1.0e-2f); -#else - static const auto all_floats = test_helpers::all_32_bit_floats (-10.0f, 10.0f, 1.0e-1f); -#endif + const auto all_floats = test_helpers::all_32_bit_floats (-10.0f, 10.0f, 1.0e-1f); const auto y_exact = test_helpers::compute_all (all_floats, [](auto x) { @@ -149,11 +141,7 @@ TEMPLATE_TEST_CASE ("Exp2 Approx Test", "", float, double) TEMPLATE_TEST_CASE ("Exp10 Approx Test", "", float, double) { -#if ! defined(WIN32) - static const auto all_floats = test_helpers::all_32_bit_floats (-10.0f, 10.0f, 1.0e-2f); -#else - static const auto all_floats = test_helpers::all_32_bit_floats (-10.0f, 10.0f, 1.0e-1f); -#endif + const auto all_floats = test_helpers::all_32_bit_floats (-10.0f, 10.0f, 1.0e-1f); const auto y_exact = test_helpers::compute_all (all_floats, [](auto x) {