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 complex expression state (as it shouldn't compile now anyway)

Commit
f35e0cbc6ab5e87e9c3259844c6f4f2e43ceada0
Author
Phil Nash ·
Parents
13bfe477c7d4

Files · Download .tar.gz

Changes

 internal/catch_result_type.h  | 1 -
 internal/catch_resultinfo.hpp | 7 +------
 2 files changed, 1 insertion(+), 7 deletions(-)

diff --git a/internal/catch_result_type.h b/internal/catch_result_type.h
index 39a2d5d0..4df93880 100644
--- a/internal/catch_result_type.h
+++ b/internal/catch_result_type.h
@@ -27,7 +27,6 @@ struct ResultWas{ enum OfType
         
         ExpressionFailed = FailureBit | 1,
         ExplicitFailure = FailureBit | 2,
-        ExpressionTooComplex = FailureBit | 3,
         
         Exception = 0x110,
         
diff --git a/internal/catch_resultinfo.hpp b/internal/catch_resultinfo.hpp
index 256618ba..016ec8c2 100644
--- a/internal/catch_resultinfo.hpp
+++ b/internal/catch_resultinfo.hpp
@@ -98,12 +98,7 @@ namespace Catch
         ()
         const
         {
-            if( !hasExpression() )
-                return "";
-            
-            return m_result == ResultWas::ExpressionTooComplex
-                ? getExpandedExpressionInternal() + " {couldn't fully decompose the expression to evaluate it - please rewrite as a binary comparison}"
-                : getExpandedExpressionInternal();
+            return hasExpression() ? getExpandedExpressionInternal() : "";
         }
         
         ///////////////////////////////////////////////////////////////////////////