Use new defaultRealTolerance() to stabilise some tests
authorMark Abraham <mark.j.abraham@gmail.com>
Wed, 20 Dec 2017 11:13:00 +0000 (22:13 +1100)
committerMark Abraham <mark.j.abraham@gmail.com>
Wed, 20 Dec 2017 12:35:44 +0000 (13:35 +0100)
commit34b318943b57059fcff991897079fc82334b7904
treeaaca3a5d3ab6ef58028f348816f6e0425259622c
parent85044d8bc3ab39e92bb8ce4ad1383abfc7a36afc
Use new defaultRealTolerance() to stabilise some tests

The single-precision values in these tests sometimes failed to compare
equal with string-ified versions when the test was run from a
double-precision build on Windows. That difference may have originated
in how a rounding mode was implemented in different libraries, but
ultimately doesn't matter because the value should not be compared as
if it was computed in double precision.

Change-Id: I9b7c2b9409145cc579229f0866935754e3a9dcac
src/gromacs/energyanalysis/tests/legacyenergy.cpp
src/testutils/cmdlinetest.cpp
src/testutils/cmdlinetest.h
src/testutils/testasserts.h
src/testutils/tests/testasserts_tests.cpp