Skip to content

Commit

Permalink
More test fixing for Linux
Browse files Browse the repository at this point in the history
  • Loading branch information
jatinchowdhury18 committed Nov 23, 2023
1 parent d2300c3 commit 4894e54
Showing 1 changed file with 3 additions and 15 deletions.
18 changes: 3 additions & 15 deletions test/src/pow_approx_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<TestType> (-10.0f, 10.0f, 1.0e-2f);
#else
static const auto all_floats = test_helpers::all_32_bit_floats<TestType> (-10.0f, 10.0f, 1.0e-1f);
#endif
const auto all_floats = test_helpers::all_32_bit_floats<TestType> (-10.0f, 10.0f, 1.0e-1f);
const auto y_exact = test_helpers::compute_all<TestType> (all_floats,
[](auto x)
{
Expand Down Expand Up @@ -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<TestType> (-10.0f, 10.0f, 1.0e-2f);
#else
static const auto all_floats = test_helpers::all_32_bit_floats<TestType> (-10.0f, 10.0f, 1.0e-1f);
#endif
const auto all_floats = test_helpers::all_32_bit_floats<TestType> (-10.0f, 10.0f, 1.0e-1f);
const auto y_exact = test_helpers::compute_all<TestType> (all_floats,
[](auto x)
{
Expand Down Expand Up @@ -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<TestType> (-10.0f, 10.0f, 1.0e-2f);
#else
static const auto all_floats = test_helpers::all_32_bit_floats<TestType> (-10.0f, 10.0f, 1.0e-1f);
#endif
const auto all_floats = test_helpers::all_32_bit_floats<TestType> (-10.0f, 10.0f, 1.0e-1f);
const auto y_exact = test_helpers::compute_all<TestType> (all_floats,
[](auto x)
{
Expand Down

0 comments on commit 4894e54

Please sign in to comment.