mirror of
https://github.com/catchorg/Catch2.git
synced 2025-09-19 19:25:38 +02:00
Made SUCCESS variadic too (optional stream)
This commit is contained in:
@@ -47,15 +47,17 @@ TEST_CASE( "INFO gets logged on failure, even if captured before successful asse
|
||||
|
||||
TEST_CASE( "FAIL aborts the test", "[failing][messages][.]" )
|
||||
{
|
||||
if( Catch::isTrue( true ) )
|
||||
FAIL( "This is a " << "failure" ); // This should output the message and abort
|
||||
FAIL( "This is a " << "failure" ); // This should output the message and abort
|
||||
}
|
||||
|
||||
#ifdef CATCH_CONFIG_VARIADIC_MACROS
|
||||
TEST_CASE( "FAIL does not require an argument", "[failing][messages][.]" )
|
||||
{
|
||||
if( Catch::isTrue( true ) )
|
||||
FAIL();
|
||||
FAIL();
|
||||
}
|
||||
TEST_CASE( "SUCCESS does not require an argument", "[messages][.]" )
|
||||
{
|
||||
SUCCEED();
|
||||
}
|
||||
#endif
|
||||
|
||||
|
Reference in New Issue
Block a user