Updated test counts

This commit is contained in:
Phil Nash 2011-04-01 08:15:58 +01:00
parent 4e58d7c6be
commit 3c08431c92
1 changed files with 9 additions and 3 deletions

View File

@ -10,9 +10,15 @@
*
*/
#include "../catch_with_main.hpp"
//#include "../catch_with_main.hpp"
#include "../internal/catch_self_test.hpp"
#include "catch_runner.hpp"
int main (int argc, char * const argv[])
{
return Catch::Main( argc, argv );
}
TEST_CASE( "selftest/main", "Runs all Catch self tests and checks their results" )
{
using namespace Catch;
@ -44,7 +50,7 @@ TEST_CASE( "selftest/main", "Runs all Catch self tests and checks their results"
"Number of 'succeeding' tests is fixed" )
{
runner.runMatching( "./succeeding/*" );
CHECK( runner.getSuccessCount() == 290 );
CHECK( runner.getSuccessCount() == 218 );
CHECK( runner.getFailureCount() == 0 );
}
@ -53,7 +59,7 @@ TEST_CASE( "selftest/main", "Runs all Catch self tests and checks their results"
{
runner.runMatching( "./failing/*" );
CHECK( runner.getSuccessCount() == 0 );
CHECK( runner.getFailureCount() == 127 );
CHECK( runner.getFailureCount() == 55 );
}
}
}