Added _THROWS_WITH macros
- asserts on exception message
This commit is contained in:
1 parent
5d5ed5a283
commit
85de743d70
9 files changed
+106
-17
No files matched your search
@@ -152,3 +152,8 @@ TEST_CASE( "NotImplemented exception", "" )
|
||||
{
|
||||
REQUIRE_THROWS( thisFunctionNotImplemented( 7 ) );
|
||||
}
|
||||
|
||||
TEST_CASE( "Exception messages can be tested for", "[.][failing]" ) {
|
||||
REQUIRE_THROWS_WITH( thisThrows(), "expected exception" );
|
||||
REQUIRE_THROWS_WITH( thisThrows(), "should fail" );
|
||||
}
|
||||
Reference in new issue
Block a user