mirror of
https://github.com/catchorg/Catch2.git
synced 2024-11-22 13:26:10 +01:00
Add test for comparing pointers to NULL with !=
This commit is contained in:
parent
0a1b0ae9d1
commit
b3dbd83da2
@ -35,5 +35,7 @@ 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_FALSE( fptr != 0 );
|
||||
REQUIRE( fptr == 0l );
|
||||
REQUIRE_FALSE( fptr != 0l );
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user