mirror of
				https://github.com/catchorg/Catch2.git
				synced 2025-10-31 04:07:10 +01:00 
			
		
		
		
	Add test for comparing pointers to NULL with !=
This commit is contained in:
		| @@ -34,6 +34,8 @@ TEST_CASE( "Reconstruction should be based on stringification: #914" , "[Decompo | ||||
|  | ||||
| TEST_CASE("#1005: Comparing pointer to int and long (NULL can be either on various systems)", "[Decomposition][approvals]") { | ||||
|     FILE* fptr = nullptr; | ||||
|     REQUIRE(fptr == 0); | ||||
|     REQUIRE(fptr == 0l); | ||||
|     REQUIRE( fptr == 0 ); | ||||
|     REQUIRE_FALSE( fptr != 0 ); | ||||
|     REQUIRE( fptr == 0l ); | ||||
|     REQUIRE_FALSE( fptr != 0l ); | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Martin Hořeňovský
					Martin Hořeňovský