diff --git a/loop/tests/test_all_atom_positions.cc b/loop/tests/test_all_atom_positions.cc index e25b4a217714c21b9e233b78f2a2b88bd5066d83..d7011d083f5143e32c0d82c60b9cb3ad548fc1ec 100644 --- a/loop/tests/test_all_atom_positions.cc +++ b/loop/tests/test_all_atom_positions.cc @@ -315,21 +315,21 @@ BOOST_AUTO_TEST_CASE(test_aap_torsions) { if (!n_ter) { tor = res_list[i].GetPhiTorsion(); if (tor.IsValid()) { - BOOST_CHECK_EQUAL(atoms.GetPhiTorsion(i), tor.GetAngle()); + BOOST_CHECK_CLOSE(atoms.GetPhiTorsion(i), tor.GetAngle(), 1e-5); } } // psi if (!c_ter) { tor = res_list[i].GetPsiTorsion(); if (tor.IsValid()) { - BOOST_CHECK_EQUAL(atoms.GetPsiTorsion(i), tor.GetAngle()); + BOOST_CHECK_CLOSE(atoms.GetPsiTorsion(i), tor.GetAngle(), 1e-5); } } // omega if (!n_ter) { tor = res_list[i].GetOmegaTorsion(); if (tor.IsValid()) { - BOOST_CHECK_EQUAL(atoms.GetOmegaTorsion(i), tor.GetAngle()); + BOOST_CHECK_CLOSE(atoms.GetOmegaTorsion(i), tor.GetAngle(), 1e-5); } } } diff --git a/loop/tests/test_mm_system_creator.cc b/loop/tests/test_mm_system_creator.cc index 6cda3263bc2269edb62050dd4d8cce8f67573533..7a180a1fd5395a72077b61178ba1f3079fe99b24 100644 --- a/loop/tests/test_mm_system_creator.cc +++ b/loop/tests/test_mm_system_creator.cc @@ -240,7 +240,7 @@ void CompareFullSimulation(const AllAtomPositions& all_pos, for (uint i = 0; i < pos_ref.size(); ++i) { BOOST_CHECK(geom::Distance(pos[mapping[i]], pos_ref[i]) < 1e-5); BOOST_CHECK(geom::Distance(vel[mapping[i]], vel_ref[i]) < 1e-5); - BOOST_CHECK(geom::Distance(forces[mapping[i]], forces_ref[i]) < 1e-5); + BOOST_CHECK(geom::Distance(forces[mapping[i]], forces_ref[i]) < 1e-3); } // check mm_sim features (NOTE: DIFFs non-zero but that's expected...)