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); }