Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions docs/CookBook.md
Original file line number Diff line number Diff line change
Expand Up @@ -286,8 +286,7 @@ Before running any tests, make sure to call:
}
else
{
CAPTURE(failure);
CHECK(failure.empty());
FAIL_CHECK(failure);
}
});
```
Expand Down
10 changes: 4 additions & 6 deletions include/catch2/trompeloeil.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,9 @@ namespace trompeloeil
else
{
#ifdef CATCH_CONFIG_PREFIX_ALL
CATCH_CAPTURE(failure);
CATCH_CHECK(failure.empty());
CATCH_FAIL_CHECK(failure);
#else
CAPTURE(failure);
CHECK(failure.empty());
FAIL_CHECK(failure);
#endif
}
}
Expand All @@ -61,9 +59,9 @@ namespace trompeloeil
const char* trompeloeil_mock_calls_done_correctly)
{
#ifdef CATCH_CONFIG_PREFIX_ALL
CATCH_REQUIRE(trompeloeil_mock_calls_done_correctly != 0);
CATCH_SUCCEED(trompeloeil_mock_calls_done_correctly);
#else
REQUIRE(trompeloeil_mock_calls_done_correctly != 0);
SUCCEED(trompeloeil_mock_calls_done_correctly);
#endif
}
}
Expand Down
Loading