Skip to content

Commit

Permalink
Merge pull request espressomd#2265 from mkuron/patch-5
Browse files Browse the repository at this point in the history
Fix unit test without SSE instructions
  • Loading branch information
fweik authored and RudolfWeeber committed Oct 15, 2018
1 parent f6e6fe8 commit ceee6e8
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/core/unit_tests/field_coupling_couplings_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -78,10 +78,12 @@ BOOST_AUTO_TEST_CASE(scaled) {
const int m_id;
};

BOOST_CHECK((1.23 * 2.) == scaled_coupling(Particle(0), 2.));
BOOST_CHECK((default_val * 3.) == scaled_coupling(Particle(1), 3.));
BOOST_CHECK((3.45 * 4.) == scaled_coupling(Particle(2), 4.));
BOOST_CHECK((default_val * 5.) == scaled_coupling(Particle(3), 5.));
BOOST_CHECK_CLOSE(1.23 * 2., scaled_coupling(Particle(0), 2.), 1e-14);
BOOST_CHECK_CLOSE(default_val * 3., scaled_coupling(Particle(1), 3.),
1e-14);
BOOST_CHECK_CLOSE(3.45 * 4., scaled_coupling(Particle(2), 4.), 1e-14);
BOOST_CHECK_CLOSE(default_val * 5., scaled_coupling(Particle(3), 5.),
1e-14);
}
}

Expand Down

0 comments on commit ceee6e8

Please sign in to comment.