Skip to content

Commit 1cb66f9

Browse files
committed
allow a larger epsilon when testing against double
This is a regression from the old tests which were much less strict. Fixes a failing area test on Windows.
1 parent 4dc31c5 commit 1cb66f9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tests/common-pg.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ class conn_t
105105

106106
void assert_double(double expected, std::string const &cmd) const
107107
{
108-
REQUIRE(Approx(expected) == require_scalar<double>(cmd));
108+
REQUIRE(Approx(expected).epsilon(0.01) == require_scalar<double>(cmd));
109109
}
110110

111111
void assert_null(std::string const &cmd) const

0 commit comments

Comments
 (0)