diff options
| author | Martin Hořeňovský | 2019-10-04 14:00:34 +0200 |
|---|---|---|
| committer | Martin Hořeňovský | 2019-10-04 14:19:39 +0200 |
| commit | ebc5609484b357c3a047aa8418ef5dd320209239 (patch) | |
| tree | f83e82895e87faf808882b1ce4f7e9c731d8050d | |
| parent | fcda35f6458d76458826161f2499576b6ca70d54 (diff) | |
| download | catch3-ebc5609484b357c3a047aa8418ef5dd320209239.tar.gz | |
Add test for INF == Approx(1)
| -rw-r--r-- | projects/SelfTest/UsageTests/Approx.tests.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/projects/SelfTest/UsageTests/Approx.tests.cpp b/projects/SelfTest/UsageTests/Approx.tests.cpp index b51e3ccb..4029223a 100644 --- a/projects/SelfTest/UsageTests/Approx.tests.cpp +++ b/projects/SelfTest/UsageTests/Approx.tests.cpp @@ -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)); } |