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

Removed redundant const

(also fixed test counts)
Commit
83a66a625568dac78cb202f26c6c9d1be29f51d3
Author
Phil Nash ·
Parents
861a1e79cf75

Files · Download .tar.gz

Changes

 include/internal/catch_capture.hpp | 2 +-
 projects/SelfTest/TestMain.cpp     | 2 +-
 single_include/catch.hpp           | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/include/internal/catch_capture.hpp b/include/internal/catch_capture.hpp
index 358f0362..cd853802 100644
--- a/include/internal/catch_capture.hpp
+++ b/include/internal/catch_capture.hpp
@@ -131,7 +131,7 @@ inline std::string toString
     char* const value
 )
 {
-    return Catch::toString( static_cast<const char* const>( value ) );
+    return Catch::toString( static_cast<const char*>( value ) );
 }        
 
 ///////////////////////////////////////////////////////////////////////////////
diff --git a/projects/SelfTest/TestMain.cpp b/projects/SelfTest/TestMain.cpp
index c1ec34b7..97bdb6a2 100644
--- a/projects/SelfTest/TestMain.cpp
+++ b/projects/SelfTest/TestMain.cpp
@@ -43,7 +43,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.getTotals().assertions.passed == 272 );
+            CHECK( runner.getTotals().assertions.passed == 276 );
             CHECK( runner.getTotals().assertions.failed == 0 );
         }
 
diff --git a/single_include/catch.hpp b/single_include/catch.hpp
index add422ff..b5969b94 100644
--- a/single_include/catch.hpp
+++ b/single_include/catch.hpp
@@ -1405,7 +1405,7 @@ inline std::string toString
     char* const value
 )
 {
-    return Catch::toString( static_cast<const char* const>( value ) );
+    return Catch::toString( static_cast<const char*>( value ) );
 }
 
 ///////////////////////////////////////////////////////////////////////////////