Add NAN test for Approx
This commit is contained in:
1 parent
5f961af70e
commit
030321e3e0
5 files changed
+35
-5
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user