Add test for INF == Approx(1)

This commit is contained in:
Martin Hořeňovský 2019-10-04 14:00:34 +02:00
parent fcda35f645
commit ebc5609484
No known key found for this signature in database
GPG Key ID: DE48307B8B0D381A
1 changed files with 1 additions and 0 deletions

View File

@ -185,6 +185,7 @@ TEST_CASE("Assorted miscellaneous tests", "[Approx][approvals]") {
REQUIRE(INFINITY == Approx(INFINITY));
REQUIRE(-INFINITY != Approx(INFINITY));
REQUIRE(1 != Approx(INFINITY));
REQUIRE(INFINITY != Approx(1));
REQUIRE(NAN != Approx(NAN));
REQUIRE_FALSE(NAN == Approx(NAN));
}