mirror of
https://github.com/catchorg/Catch2.git
synced 2025-06-02 01:47:57 +00:00
Add NAN test for Approx
This commit is contained in:
parent
5f961af70e
commit
030321e3e0
5 changed files with 35 additions and 5 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue