mirror of
https://github.com/catchorg/Catch2.git
synced 2025-06-02 18:07:59 +00:00
parent
07211cea9c
commit
61d2c375dd
7 changed files with 82 additions and 9 deletions
|
@ -7,6 +7,7 @@
|
|||
*/
|
||||
|
||||
#include <iostream>
|
||||
#include <cstdio>
|
||||
|
||||
struct truthy {
|
||||
truthy(bool b):m_value(b){}
|
||||
|
@ -26,3 +27,9 @@ std::ostream& operator<<(std::ostream& o, truthy) {
|
|||
TEST_CASE( "Reconstruction should be based on stringification: #914" , "[Decomposition][failing][.]") {
|
||||
CHECK(truthy(false));
|
||||
}
|
||||
|
||||
TEST_CASE("#1005: Comparing pointer to int and long (NULL can be either on various systems)", "[Decomposition]") {
|
||||
FILE* fptr = nullptr;
|
||||
REQUIRE(fptr == 0);
|
||||
REQUIRE(fptr == 0l);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue