catch3
Progmasoft Catch3: an independently maintained C++17 test framework with a parallel runner, property checks, snapshots and structured results.
Clonegit clone https://git.progmasoft.com/catch3
Add test for INF == Approx(1)
- Commit
ebc5609484b357c3a047aa8418ef5dd320209239- Author
- Martin Hořeňovský ·
- Parents
fcda35f6458d
Changes
projects/SelfTest/UsageTests/Approx.tests.cpp | 1 + 1 file changed, 1 insertion(+) 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)); }