Update of /cvsroot/mockpp/mockpp/mockpp/constraint
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8978/mockpp/constraint
Modified Files:
ConstraintList.h
Log Message:
improved error message
Index: ConstraintList.h
===================================================================
RCS file: /cvsroot/mockpp/mockpp/mockpp/constraint/ConstraintList.h,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- ConstraintList.h 24 Mar 2005 20:51:29 -0000 1.2
+++ ConstraintList.h 6 Apr 2005 20:11:28 -0000 1.3
@@ -279,8 +279,8 @@
MOCKPP_ASSERT_TRUE_MESSAGE(fmt, constraints.size() > pos);
String s;
- fmt = i18n(MOCKPP_PCHAR("%1 constraint[%2] does not match: %3."));
- fmt << this->getVerifiableName() << pos << constraints[pos]->describeTo(s);
+ fmt = i18n(MOCKPP_PCHAR("%1 added constraint[%2] does not match: <%3> != %4"));
+ fmt << this->getVerifiableName() << pos << constraints[pos]->describeTo(s) << actualItem;
MOCKPP_ASSERT_TRUE_MESSAGE(fmt, constraints[pos]->eval(actualItem));
}
|