forked from catchorg/Catch2
Add test for INF == Approx(1)
This commit is contained in:
@ -185,6 +185,7 @@ TEST_CASE("Assorted miscellaneous tests", "[Approx][approvals]") {
|
|||||||
REQUIRE(INFINITY == Approx(INFINITY));
|
REQUIRE(INFINITY == Approx(INFINITY));
|
||||||
REQUIRE(-INFINITY != Approx(INFINITY));
|
REQUIRE(-INFINITY != Approx(INFINITY));
|
||||||
REQUIRE(1 != Approx(INFINITY));
|
REQUIRE(1 != Approx(INFINITY));
|
||||||
|
REQUIRE(INFINITY != Approx(1));
|
||||||
REQUIRE(NAN != Approx(NAN));
|
REQUIRE(NAN != Approx(NAN));
|
||||||
REQUIRE_FALSE(NAN == Approx(NAN));
|
REQUIRE_FALSE(NAN == Approx(NAN));
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user