Fixed self test

This commit is contained in:
Phil Nash 2011-01-28 10:22:36 +00:00
parent bf4a4312b4
commit ffcde2dd0e
2 changed files with 1 additions and 15 deletions

View File

@ -96,17 +96,3 @@ TEST_CASE( "./succeeding/generators/1", "Generators over two ranges" )
REQUIRE( multiply( i, 2 ) == i*2 );
REQUIRE( multiply( j, 2 ) == j*2 );
}
// An unnamed test case. A name, of the form, "unnamed/#" is generated, where
// # is an incrementing integer
ANON_TEST_CASE()
{
int i = 7;
REQUIRE( i == 7 );
}
ANON_TEST_CASE()
{
int i = 7;
REQUIRE( i == 8 );
}

View File

@ -21,7 +21,7 @@ TEST_CASE( "selftest/main", "Runs all Catch self tests and checks their results"
EmbeddedRunner runner;
runner.runMatching( "./succeeding/*" );
CHECK( runner.getReporter().getSucceeded() == 53 );
CHECK( runner.getReporter().getSucceeded() == 196 );
CHECK( runner.getReporter().getFailed() == 0 );
runner.runMatching( "./failing/*" );