Added NotImplementedException

This commit is contained in:
Phil Nash
2012-07-05 18:37:58 +01:00
parent 4c73aa5a0e
commit abf271672f
7 changed files with 252 additions and 195 deletions

View File

@@ -150,3 +150,12 @@ TEST_CASE( "./succeeding/exceptions/error messages", "The error messages produce
}
}
inline int thisFunctionNotImplemented( int ) {
CATCH_NOT_IMPLEMENTED;
}
TEST_CASE( "./succeeding/exceptions/notimplemented", "" )
{
REQUIRE_THROWS( thisFunctionNotImplemented( 7 ) );
}

View File

@@ -33,7 +33,7 @@ TEST_CASE( "selftest/main", "Runs all Catch self tests and checks their results"
SECTION( "selftest/test counts/succeeding tests",
"Number of 'succeeding' tests is fixed" ) {
runner.runMatching( "./succeeding/*" );
CHECK( runner.getTotals().assertions.passed == 283 );
CHECK( runner.getTotals().assertions.passed == 284 );
CHECK( runner.getTotals().assertions.failed == 0 );
}