mirror of
https://github.com/catchorg/Catch2.git
synced 2024-11-04 05:09:53 +01:00
5dd0639520
Works like FAIL, but does not abort test. As proposed in #765
92 lines
2.7 KiB
Plaintext
92 lines
2.7 KiB
Plaintext
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
<exe-name> is a <version> host application.
|
|
Run with -? for options
|
|
|
|
-------------------------------------------------------------------------------
|
|
# A test name that starts with a #
|
|
-------------------------------------------------------------------------------
|
|
MiscTests.cpp:<line number>
|
|
...............................................................................
|
|
|
|
MiscTests.cpp:<line number>:
|
|
PASSED:
|
|
with message:
|
|
yay
|
|
|
|
-------------------------------------------------------------------------------
|
|
#542
|
|
-------------------------------------------------------------------------------
|
|
CompilationTests.cpp:<line number>
|
|
...............................................................................
|
|
|
|
CompilationTests.cpp:<line number>:
|
|
PASSED:
|
|
CHECK_THROWS_AS( throws_int(true), int )
|
|
|
|
CompilationTests.cpp:<line number>:
|
|
PASSED:
|
|
CHECK_THROWS_AS( throws_int(true), int& )
|
|
|
|
CompilationTests.cpp:<line number>:
|
|
PASSED:
|
|
CHECK_THROWS_AS( throws_int(true), const int )
|
|
|
|
CompilationTests.cpp:<line number>:
|
|
PASSED:
|
|
CHECK_THROWS_AS( throws_int(true), const int& )
|
|
|
|
-------------------------------------------------------------------------------
|
|
#809
|
|
-------------------------------------------------------------------------------
|
|
CompilationTests.cpp:<line number>
|
|
...............................................................................
|
|
|
|
CompilationTests.cpp:<line number>:
|
|
PASSED:
|
|
REQUIRE( 42 == f )
|
|
with expansion:
|
|
42 == {?}
|
|
|
|
-------------------------------------------------------------------------------
|
|
#835 -- errno should not be touched by Catch
|
|
-------------------------------------------------------------------------------
|
|
MiscTests.cpp:<line number>
|
|
...............................................................................
|
|
|
|
MiscTests.cpp:<line number>: FAILED:
|
|
CHECK( f() == 0 )
|
|
with expansion:
|
|
1 == 0
|
|
|
|
MiscTests.cpp:<line number>:
|
|
PASSED:
|
|
REQUIRE( (*__error()) == 1 )
|
|
with expansion:
|
|
1 == 1
|
|
|
|
-------------------------------------------------------------------------------
|
|
'Not' checks that should fail
|
|
-------------------------------------------------------------------------------
|
|
ConditionTests.cpp:<line number>
|
|
...............................................................................
|
|
|
|
ConditionTests.cpp:<line number>: FAILED:
|
|
CHECK( false != false )
|
|
|
|
ConditionTests.cpp:<line number>: FAILED:
|
|
CHECK( true != true )
|
|
|
|
ConditionTests.cpp:<line number>: FAILED:
|
|
CHECK( !true )
|
|
with expansion:
|
|
false
|
|
|
|
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
|
|
|