From 9f8398f7dff50441e244090f586abd4ece3c67b0 Mon Sep 17 00:00:00 2001 From: Francesco Rizzi Date: Mon, 17 Jun 2024 09:23:58 +0200 Subject: [PATCH] fix assertion failing on mac --- .../ode_forward_euler_custom_ind_var_type_eigen.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/functional_small/ode_steppers/ode_forward_euler_custom_ind_var_type_eigen.cc b/tests/functional_small/ode_steppers/ode_forward_euler_custom_ind_var_type_eigen.cc index 2d4665111..5c8bd9de7 100644 --- a/tests/functional_small/ode_steppers/ode_forward_euler_custom_ind_var_type_eigen.cc +++ b/tests/functional_small/ode_steppers/ode_forward_euler_custom_ind_var_type_eigen.cc @@ -45,7 +45,7 @@ TEST(ode_explicit_steppers, euler_custom_ind_var_type) MyCustomTime dt{0.1}; ode::advance_n_steps(stepperObj, y, t0, dt, pressio::ode::StepCount(1)); - EXPECT_DOUBLE_EQ( y[0], 0.); - EXPECT_DOUBLE_EQ( y[1], 0.); - EXPECT_DOUBLE_EQ( y[2], 0.); + EXPECT_NEAR( y[0], 0., 1e-14); + EXPECT_NEAR( y[1], 0., 1e-14); + EXPECT_NEAR( y[2], 0., 1e-14); }