Skip to content

Commit

Permalink
Fixing test failures on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
jatinchowdhury18 committed Jan 6, 2024
1 parent 85399f9 commit e50b2e2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/src/inverse_trig_approx_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ TEST_CASE ("Asin Approx Test")
#if ! defined(WIN32)
const auto all_floats = test_helpers::all_32_bit_floats (-1.0f, 1.0f, 1.0e-2f);
#else
const auto all_floats = test_helpers::all_32_bit_floats (-10.0f, 10.0f, 1.0e-1f);
const auto all_floats = test_helpers::all_32_bit_floats (-1.0f, 1.0f, 1.0e-1f);
#endif
const auto y_exact = test_helpers::compute_all<float> (all_floats, [] (auto x)
{ return std::asin (x); });
Expand Down Expand Up @@ -37,15 +37,15 @@ TEST_CASE ("Asin Approx Test")
{
test_approx ([] (auto x)
{ return math_approx::asin<4> (x); },
2.0e-7f,
2.5e-7f,
4.0e-7f,
4);
}
SECTION ("3rd-Order")
{
test_approx ([] (auto x)
{ return math_approx::asin<3> (x); },
2.5e-7f,
3.0e-7f,
5.0e-7f,
5);
}
Expand All @@ -72,7 +72,7 @@ TEST_CASE ("Acos Approx Test")
#if ! defined(WIN32)
const auto all_floats = test_helpers::all_32_bit_floats (-1.0f, 1.0f, 1.0e-2f);
#else
const auto all_floats = test_helpers::all_32_bit_floats (-10.0f, 10.0f, 1.0e-1f);
const auto all_floats = test_helpers::all_32_bit_floats (-1.0f, 1.0f, 1.0e-1f);
#endif
const auto y_exact = test_helpers::compute_all<float> (all_floats, [] (auto x)
{ return std::acos (x); });
Expand Down

0 comments on commit e50b2e2

Please sign in to comment.