Read-only mirrors. Development, issues and pull requests are on GitHub.

summaryrefslogtreecommitdiffhomepage
path: root/projects/SelfTest/TestMain.cpp
diff options
context:
space:
mode:
authorPhil Nash2012-02-23 18:51:21 +0000
committerPhil Nash2012-02-23 18:51:21 +0000
commit9bbaeba3ae58dd8709d83f78feaca1637ac0ec29 (patch)
tree597f3eb8885c2a0b5104a1055b1ffa6dbd35b08e /projects/SelfTest/TestMain.cpp
parent8d93949b1954b8c446372a3f182cff88f4f17652 (diff)
downloadcatch3-9bbaeba3ae58dd8709d83f78feaca1637ac0ec29.tar.gz
Refactored internal interfaces to use Totals instead of success/ fail
Diffstat (limited to 'projects/SelfTest/TestMain.cpp')
-rw-r--r--projects/SelfTest/TestMain.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/projects/SelfTest/TestMain.cpp b/projects/SelfTest/TestMain.cpp
index 3b4c7859..44d56745 100644
--- a/projects/SelfTest/TestMain.cpp
+++ b/projects/SelfTest/TestMain.cpp
@@ -43,16 +43,16 @@ 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() == 267 );
- CHECK( runner.getFailureCount() == 0 );
+ CHECK( runner.getTotals().assertions.passed == 267 );
+ CHECK( runner.getTotals().assertions.failed == 0 );
}
SECTION( "selftest/test counts/failing tests",
"Number of 'failing' tests is fixed" )
{
runner.runMatching( "./failing/*" );
- CHECK( runner.getSuccessCount() == 0 );
- CHECK( runner.getFailureCount() == 68 );
+ CHECK( runner.getTotals().assertions.passed == 0 );
+ CHECK( runner.getTotals().assertions.failed == 68 );
}
}
}
@@ -62,7 +62,7 @@ TEST_CASE( "meta/Misc/Sections", "looped tests" )
Catch::EmbeddedRunner runner;
runner.runMatching( "./mixed/Misc/Sections/nested2" );
- CHECK( runner.getSuccessCount() == 2 );
- CHECK( runner.getFailureCount() == 1 );
+ CHECK( runner.getTotals().assertions.passed == 2 );
+ CHECK( runner.getTotals().assertions.failed == 1 );
}