diff options
| author | Phil Nash | 2010-12-27 11:09:34 +0000 |
|---|---|---|
| committer | Phil Nash | 2010-12-27 11:09:34 +0000 |
| commit | 00256685845d8227986d1ff65d4d6a88ebaefc22 (patch) | |
| tree | 488e63875089a3b91baa822628e5870d8f6024e0 /Test/MessageTests.cpp | |
| parent | b3ef7fc0f28c289613b7a16298bbf13ff45499f5 (diff) | |
| download | catch3-00256685845d8227986d1ff65d4d6a88ebaefc22.tar.gz | |
Added streaming to message macros and added scoped info
Diffstat (limited to 'Test/MessageTests.cpp')
| -rw-r--r-- | Test/MessageTests.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Test/MessageTests.cpp b/Test/MessageTests.cpp index 1a73b0ac..a75fc5bb 100644 --- a/Test/MessageTests.cpp +++ b/Test/MessageTests.cpp @@ -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 }
\ No newline at end of file |