Commit 6ab99d3
committed
Use SUCCEED macro to report Ok results failures to Catch2
The previous approach buries the list of which trompeloil requirements
were matched in the expansion of the REQUIRE expression:
PASSED:
REQUIRE( trompeloeil_mock_calls_done_correctly != 0 )
with expansion:
"spy.rowsAboutToBeInserted(QModelIndex{},1,1)"
!=
0
Using SUCCESS puts the real message up front, with no extra quoting.
PASSED:
with message:
spy.rowsAboutToBeInserted(QModelIndex{},1,1)
SUCCEED has been available since Catch2 1.2.01 parent 29169e6 commit 6ab99d3
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
62 | | - | |
| 62 | + | |
63 | 63 | | |
64 | | - | |
| 64 | + | |
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
| |||
0 commit comments