diff options
| author | Martin Hořeňovský | 2022-11-01 21:38:46 +0100 |
|---|---|---|
| committer | Martin Hořeňovský | 2022-11-04 19:24:39 +0100 |
| commit | b3dbd83da2f793a8630647e0053b6613ba5fb874 (patch) | |
| tree | d66c7ea9a79443534ecbb6d18b2eabacac338c41 /tests | |
| parent | 0a1b0ae9d1a1159f29ad061ff68c7126c6681f75 (diff) | |
| download | catch3-b3dbd83da2f793a8630647e0053b6613ba5fb874.tar.gz | |
Add test for comparing pointers to NULL with !=
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/SelfTest/UsageTests/Decomposition.tests.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/SelfTest/UsageTests/Decomposition.tests.cpp b/tests/SelfTest/UsageTests/Decomposition.tests.cpp index 44efa234..e92f7406 100644 --- a/tests/SelfTest/UsageTests/Decomposition.tests.cpp +++ b/tests/SelfTest/UsageTests/Decomposition.tests.cpp @@ -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 ); } |