Progmasoft Git

catch3

Progmasoft Catch3: an independently maintained C++17 test framework with a parallel runner, property checks, snapshots and structured results.

Clonegit clone https://git.progmasoft.com/catch3

Fixed self test

Commit
ffcde2dd0e7581a6ff0fe1cce050fcd3eb91ae70
Author
Phil Nash ·
Parents
bf4a4312b4cc

Files · Download .tar.gz

Changes

 Test/MiscTests.cpp | 14 --------------
 Test/TestMain.cpp  |  2 +-
 2 files changed, 1 insertion(+), 15 deletions(-)

diff --git a/Test/MiscTests.cpp b/Test/MiscTests.cpp
index f1451c07..4808d132 100644
--- a/Test/MiscTests.cpp
+++ b/Test/MiscTests.cpp
@@ -96,17 +96,3 @@ TEST_CASE( "./succeeding/generators/1", "Generators over two ranges" )
     REQUIRE( multiply( i, 2 ) == i*2 );
     REQUIRE( multiply( j, 2 ) == j*2 );
 }
-
-
-// An unnamed test case. A name, of the form, "unnamed/#" is generated, where
-// # is an incrementing integer
-ANON_TEST_CASE()
-{
-    int i = 7;
-    REQUIRE( i == 7 );
-}
-ANON_TEST_CASE()
-{
-    int i = 7;
-    REQUIRE( i == 8 );
-}
diff --git a/Test/TestMain.cpp b/Test/TestMain.cpp
index d3dc7e5f..0e84c8f3 100644
--- a/Test/TestMain.cpp
+++ b/Test/TestMain.cpp
@@ -21,7 +21,7 @@ TEST_CASE( "selftest/main", "Runs all Catch self tests and checks their results"
     EmbeddedRunner runner;
 
     runner.runMatching( "./succeeding/*" );
-    CHECK( runner.getReporter().getSucceeded() == 53 );
+    CHECK( runner.getReporter().getSucceeded() == 196 );
     CHECK( runner.getReporter().getFailed() == 0 );
 
     runner.runMatching( "./failing/*" );