Test for FAIL that doesn’t take an argument

This commit is contained in:
Phil Nash 2013-12-14 14:30:58 +00:00
parent 274ed3ea76
commit b4625208d0
2 changed files with 9 additions and 1 deletions

View file

@ -51,6 +51,14 @@ TEST_CASE( "FAIL aborts the test", "[failing][messages][.]" )
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();
}
#endif
TEST_CASE( "Output from all sections is reported", "[failing][messages][.]" )
{
SECTION( "one", "" )