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 broken meta-test

Commit
5f43a43662c8b9feca25aeccc79d1c7db664c9a0
Author
Phil Nash ·
Parents
7d1ce5fadeaa

Files · Download .tar.gz

Changes

 Test/TestMain.cpp    | 2 +-
 Test/TrickyTests.cpp | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/Test/TestMain.cpp b/Test/TestMain.cpp
index f083724d..1492fb7d 100644
--- a/Test/TestMain.cpp
+++ b/Test/TestMain.cpp
@@ -59,7 +59,7 @@ int main (int argc, char * const argv[])
     
     if( result == 0 )
     {
-        const size_t expectedTestCaseCount = 97; // !TBD factor this out
+        const size_t expectedTestCaseCount = 99; // !TBD factor this out
         size_t testCaseCount = runner.getSuccessCount() + runner.getFailureCount();
         std::cout << "All " << testCaseCount << " tests completed successfully" << std::endl;
         if( testCaseCount != expectedTestCaseCount )
diff --git a/Test/TrickyTests.cpp b/Test/TrickyTests.cpp
index 707e50d5..120ca783 100644
--- a/Test/TrickyTests.cpp
+++ b/Test/TrickyTests.cpp
@@ -47,7 +47,7 @@ struct Opaque
     int val;
     bool operator ==( const Opaque& o )
     {
-        return val = o.val;
+        return val == o.val;
     }
 };