Add NAN test for Approx

This commit is contained in:
Martin Hořeňovský 2017-11-10 18:48:45 +01:00
parent 5f961af70e
commit 030321e3e0
5 changed files with 35 additions and 5 deletions

View file

@ -190,6 +190,8 @@ TEST_CASE("Epsilon only applies to Approx's value", "[Approx]") {
TEST_CASE("Assorted miscellaneous tests", "[Approx]") {
REQUIRE(INFINITY == Approx(INFINITY));
REQUIRE(NAN != Approx(NAN));
REQUIRE_FALSE(NAN == Approx(NAN));
}
class StrongDoubleTypedef