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 HasExpression check

classic spurious ! prefix
Commit
5933d75cdcebecc6fc5f43a37fd7ec53b0759d66
Author
Phil Nash ·
Parents
3724463be714

Files · Download .tar.gz

Changes

 include/reporters/catch_reporter_teamcity.hpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/reporters/catch_reporter_teamcity.hpp b/include/reporters/catch_reporter_teamcity.hpp
index 30cda566..f436567d 100644
--- a/include/reporters/catch_reporter_teamcity.hpp
+++ b/include/reporters/catch_reporter_teamcity.hpp
@@ -107,7 +107,7 @@ namespace Catch {
                     message += "\n" + it->message;
                 
                 
-                if( !result.hasExpression() ) {
+                if( result.hasExpression() ) {
                     details =
                         "  " + result.getExpressionInMacro() + "\n"
                         "with expansion:\n" +