mirror of
https://github.com/catchorg/Catch2.git
synced 2024-11-22 21:36:11 +01:00
Cleaned up some stray tests
This commit is contained in:
parent
ca79d19325
commit
35cb97f5e2
@ -92,11 +92,11 @@ TEST_CASE( "./succeeding/nofail", "The NO_FAIL macro reports a failure but does
|
|||||||
CHECK_NOFAIL( 1 == 2 );
|
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" );
|
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" );
|
FAIL( "Previous info should not be seen" );
|
||||||
}
|
}
|
||||||
|
@ -243,11 +243,11 @@ TEST_CASE("./failing/matchers/Equals", "")
|
|||||||
//{
|
//{
|
||||||
// REQUIRE_THAT("", Equals(NULL));
|
// REQUIRE_THAT("", Equals(NULL));
|
||||||
//}
|
//}
|
||||||
TEST_CASE("/succeeding/matchers/AllOf", "")
|
TEST_CASE("./succeeding/matchers/AllOf", "")
|
||||||
{
|
{
|
||||||
CHECK_THAT( testStringForMatching(), AllOf( Catch::Contains( "string" ), Catch::Contains( "abc" ) ) );
|
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( "string" ), Catch::Contains( "not there" ) ) );
|
||||||
CHECK_THAT( testStringForMatching(), AnyOf( Catch::Contains( "not there" ), Catch::Contains( "string" ) ) );
|
CHECK_THAT( testStringForMatching(), AnyOf( Catch::Contains( "not there" ), Catch::Contains( "string" ) ) );
|
||||||
|
@ -37,7 +37,7 @@ TEST_CASE( "selftest/main", "Runs all Catch self tests and checks their results"
|
|||||||
SECTION( "selftest/test counts/succeeding tests",
|
SECTION( "selftest/test counts/succeeding tests",
|
||||||
"Number of 'succeeding' tests is fixed" ) {
|
"Number of 'succeeding' tests is fixed" ) {
|
||||||
Totals totals = runner.runMatching( "./succeeding/*", 0, 2 );
|
Totals totals = runner.runMatching( "./succeeding/*", 0, 2 );
|
||||||
CHECK( totals.assertions.passed == 291 );
|
CHECK( totals.assertions.passed == 296 );
|
||||||
CHECK( totals.assertions.failed == 0 );
|
CHECK( totals.assertions.failed == 0 );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user