Added test for previous change

(Test Dragged Development?)
This commit is contained in:
Phil Nash 2012-02-29 08:39:22 +00:00
parent f52bd35e2f
commit 56a02eede5
2 changed files with 11 additions and 1 deletions

View File

@ -175,3 +175,13 @@ TEST_CASE( "./manual/onechar", "send a single char to INFO" )
INFO(3); INFO(3);
REQUIRE(false); REQUIRE(false);
} }
TEST_CASE("./succeeding/atomic if", "")
{
size_t x = 0;
if( x )
REQUIRE(x > 0);
else
REQUIRE(x == 0);
}

View File

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