]> www.ginac.de Git - ginac.git/blobdiff - check/match_bug.cpp
Changed name of debugging macro (to avoid warning cause by multiple definition).
[ginac.git] / check / match_bug.cpp
index 768e95bb402e959ea97338c07ac2d259dfd0b214..11bfc5613cfe287bf6a1533a3a9a79c57a82bcd0 100644 (file)
@@ -45,8 +45,8 @@ static void failed_match_have_side_effects()
        // obviously e does NOT match the pattern
        exmap repls;
        bool match_p = e.match(pattern, repls);
-       bug_on(match_p, "match(" << e << ", " << pattern << ") says \"Yes\"");
-       bug_on(repls.size() != 0,
+       cbug_on(match_p, "match(" << e << ", " << pattern << ") says \"Yes\"");
+       cbug_on(repls.size() != 0,
                "failed match have side effects: repls = " << repls);
 }
 
@@ -69,7 +69,7 @@ static void match_false_negative()
        ex pattern = pow(wild(0), -1)*pow(x, wild(2));
        exmap repls;
        bool match_p = e.match(pattern, repls);
-       bug_on(!match_p, "false negative: " << e << " did not match "
+       cbug_on(!match_p, "false negative: " << e << " did not match "
                        << pattern);
 }