Added streaming to message macros and added scoped info

This commit is contained in:
Phil Nash
2010-12-27 11:09:34 +00:00
parent b3ef7fc0f2
commit 0025668584
5 changed files with 65 additions and 8 deletions

View File

@@ -14,11 +14,11 @@
TEST_CASE( "succeeding/message", "INFO and WARN do not abort tests" )
{
INFO( "this is a message" ); // This should output the message but continue
WARN( "this is a warning" ); // This should output the message but continue
INFO( "this is a " << "message" ); // This should output the message but continue
WARN( "this is a " << "warning" ); // This should output the message but continue
}
TEST_CASE( "failing/message", "FAIL aborts the test" )
{
FAIL( "This is a failure" ); // This should output the message and abort
FAIL( "This is a " << "failure" ); // This should output the message and abort
}