Skip to content

Commit

Permalink
Fewer floats for pow tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jatinchowdhury18 committed Nov 28, 2023
1 parent 40588bd commit 4f84546
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/src/pow_approx_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ void test_approx (const auto& all_floats, const auto& y_exact, auto&& f_approx,

TEMPLATE_TEST_CASE ("Exp Approx Test", "", float, double)
{
const auto all_floats = test_helpers::all_32_bit_floats<TestType> (-10.0f, 10.0f, 1.0e-1f);
const auto all_floats = test_helpers::all_32_bit_floats<TestType> (-10.0f, 10.0f, 2.5e-1f);
const auto y_exact = test_helpers::compute_all<TestType> (all_floats,
[](auto x)
{
Expand Down Expand Up @@ -130,7 +130,7 @@ TEMPLATE_TEST_CASE ("Exp Approx Test", "", float, double)

TEMPLATE_TEST_CASE ("Exp2 Approx Test", "", float, double)
{
const auto all_floats = test_helpers::all_32_bit_floats<TestType> (-10.0f, 10.0f, 1.0e-1f);
const auto all_floats = test_helpers::all_32_bit_floats<TestType> (-10.0f, 10.0f, 2.5e-1f);
const auto y_exact = test_helpers::compute_all<TestType> (all_floats,
[](auto x)
{
Expand Down Expand Up @@ -229,7 +229,7 @@ TEMPLATE_TEST_CASE ("Exp2 Approx Test", "", float, double)

TEMPLATE_TEST_CASE ("Exp10 Approx Test", "", float, double)
{
const auto all_floats = test_helpers::all_32_bit_floats<TestType> (-10.0f, 10.0f, 1.0e-1f);
const auto all_floats = test_helpers::all_32_bit_floats<TestType> (-10.0f, 10.0f, 2.5e-1f);
const auto y_exact = test_helpers::compute_all<TestType> (all_floats,
[](auto x)
{
Expand Down

0 comments on commit 4f84546

Please sign in to comment.