Cleaned up some stray tests

This commit is contained in:
Phil Nash 2013-02-19 18:45:06 +00:00
parent ca79d19325
commit 35cb97f5e2
3 changed files with 5 additions and 5 deletions

View File

@ -92,11 +92,11 @@ TEST_CASE( "./succeeding/nofail", "The NO_FAIL macro reports a failure but does
CHECK_NOFAIL( 1 == 2 );
}
TEST_CASE( "just info", "[info][isolated info]" )
TEST_CASE( "just info", "[info][isolated info][hide]" )
{
INFO( "this should never be seen" );
}
TEST_CASE( "just failure", "[fail][isolated info]" )
TEST_CASE( "just failure", "[fail][isolated info][hide]" )
{
FAIL( "Previous info should not be seen" );
}

View File

@ -243,11 +243,11 @@ TEST_CASE("./failing/matchers/Equals", "")
//{
// REQUIRE_THAT("", Equals(NULL));
//}
TEST_CASE("/succeeding/matchers/AllOf", "")
TEST_CASE("./succeeding/matchers/AllOf", "")
{
CHECK_THAT( testStringForMatching(), AllOf( Catch::Contains( "string" ), Catch::Contains( "abc" ) ) );
}
TEST_CASE("/succeeding/matchers/AnyOf", "")
TEST_CASE("./succeeding/matchers/AnyOf", "")
{
CHECK_THAT( testStringForMatching(), AnyOf( Catch::Contains( "string" ), Catch::Contains( "not there" ) ) );
CHECK_THAT( testStringForMatching(), AnyOf( Catch::Contains( "not there" ), Catch::Contains( "string" ) ) );

View File

@ -37,7 +37,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" ) {
Totals totals = runner.runMatching( "./succeeding/*", 0, 2 );
CHECK( totals.assertions.passed == 291 );
CHECK( totals.assertions.passed == 296 );
CHECK( totals.assertions.failed == 0 );
}