mirror of
https://github.com/catchorg/Catch2.git
synced 2025-09-17 02:25:38 +02:00
Added FAIL_CHECK
Works like FAIL, but does not abort test. As proposed in #765
This commit is contained in:
@@ -61,7 +61,7 @@ with expansion:
|
||||
|
||||
MiscTests.cpp:<line number>:
|
||||
PASSED:
|
||||
REQUIRE( (*__errno_location ()) == 1 )
|
||||
REQUIRE( (*__error()) == 1 )
|
||||
with expansion:
|
||||
1 == 1
|
||||
|
||||
@@ -82,7 +82,10 @@ ConditionTests.cpp:<line number>: FAILED:
|
||||
with expansion:
|
||||
false
|
||||
|
||||
===============================================================================
|
||||
test cases: 5 | 3 passed | 2 failed
|
||||
assertions: 11 | 7 passed | 4 failed
|
||||
ConditionTests.cpp:<line number>: FAILED:
|
||||
CHECK_FALSE( true )
|
||||
|
||||
===============================================================================
|
||||
test cases: 5 | 3 passed | 1 failed | 1 failed as expected
|
||||
assertions: 12 | 7 passed | 4 failed | 1 failed as expected
|
||||
|
||||
|
Reference in New Issue
Block a user