mirror of
https://github.com/catchorg/Catch2.git
synced 2024-11-26 07:16:10 +01:00
Fixed self test
This commit is contained in:
parent
bf4a4312b4
commit
ffcde2dd0e
@ -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 );
|
||||
}
|
||||
|
@ -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/*" );
|
||||
|
Loading…
Reference in New Issue
Block a user