We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 129ae52 commit 8eb4013Copy full SHA for 8eb4013
test/src/Stream/test_parseFloat.cpp
@@ -48,7 +48,7 @@ TEST_CASE ("Testing parseFloat(LookaheadMode lookahead = SKIP_ALL, char ignore =
48
WHEN ("A float is provided with too many digits")
49
{
50
mock << "3.1415926535897932384";
51
- REQUIRE(abs(mock.parseFloat() - 3.141592654f) < 8 * FLT_EPSILON);
+ REQUIRE(mock.parseFloat() == Approx(3.141592654f));
52
}
53
54
0 commit comments