Skip to content

Commit

Permalink
Relax the equality in test
Browse files Browse the repository at this point in the history
  • Loading branch information
ianhbell committed Jul 21, 2024
1 parent 9e2fb97 commit 9933594
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tests/catch_test_LJmodels.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ TEST_CASE("Test s^+ ", "[Mien6]")
auto rhovec = (Eigen::ArrayXd(1) << rho).finished();
auto splus = model->get_splus(1.32, rhovec);
auto splus_normal = model->get_Ar00(1.32, rho, z)-model->get_Ar10(1.32, rho, z);
CHECK(splus == splus_normal);
CHECK_THAT(splus, WithinRel(splus_normal, 1e-8));
}


Expand Down

0 comments on commit 9933594

Please sign in to comment.