X-Git-Url: https://www.ginac.de/ginac.git//ginac.git?p=ginac.git;a=blobdiff_plain;f=check%2Fmatch_bug.cpp;h=43c879a4a4fddc641207c19c83ad89d67d665367;hp=768e95bb402e959ea97338c07ac2d259dfd0b214;hb=866b3eb23253a272788d8791b1ed023e63674d50;hpb=1602530f716ba1d425a0667b897182b99c374823 diff --git a/check/match_bug.cpp b/check/match_bug.cpp index 768e95bb..43c879a4 100644 --- a/check/match_bug.cpp +++ b/check/match_bug.cpp @@ -4,7 +4,7 @@ * http://www.ginac.de/pipermail/ginac-devel/2006-April/000942.html */ /* - * GiNaC Copyright (C) 1999-2009 Johannes Gutenberg University Mainz, Germany + * GiNaC Copyright (C) 1999-2010 Johannes Gutenberg University Mainz, Germany * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -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); }