mirror of
				https://github.com/catchorg/Catch2.git
				synced 2025-10-31 20:27:11 +01:00 
			
		
		
		
	Add test for INF == Approx(1)
This commit is contained in:
		| @@ -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)); | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Martin Hořeňovský
					Martin Hořeňovský