From c6c1eb7c3b107dbd0379c4596f4c6dd2214acea1 Mon Sep 17 00:00:00 2001 From: Kenneth Weiss Date: Fri, 17 Jun 2022 10:51:17 -0700 Subject: [PATCH] Bugfix: Ensure that all utilities test gets run as part `core` suite --- src/axom/core/tests/utils_utilities.hpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/axom/core/tests/utils_utilities.hpp b/src/axom/core/tests/utils_utilities.hpp index ec600f2176..bf1887f263 100644 --- a/src/axom/core/tests/utils_utilities.hpp +++ b/src/axom/core/tests/utils_utilities.hpp @@ -160,7 +160,7 @@ TEST(utils_utilities, floor_ceil) } //------------------------------------------------------------------------------ -TEST(core_utilities, binomial_coefficient) +TEST(utils_utilities, binomial_coefficient) { std::cout << "Testing binomial coefficient function." << std::endl; @@ -243,7 +243,7 @@ TEST(core_utilities, binomial_coefficient) } } -TEST(core_Utilities, lerp) +TEST(utils_utilities, lerp) { std::cout << "Testing lerp function." << std::endl; @@ -288,7 +288,7 @@ TEST(core_Utilities, lerp) double t = axom::utilities::random_real(-1.5, 1.5); double exp = A + (B - A) * t; - EXPECT_DOUBLE_EQ(exp, axom::utilities::lerp(A, B, t)); + EXPECT_NEAR(exp, axom::utilities::lerp(A, B, t), 1e-12); } } -} \ No newline at end of file +}