[Cppunit-devel] Reviving name of target being tested in error messages
Brought to you by:
blep
From: Philippe F. <pf...@no...> - 2003-01-04 23:09:59
|
Hi, in the first version of cppunit, IIRC, one could write something like that : CPPUNIT_ASSERT_EQUALS( a, 2 ) and get an error message like " 'a' was expected to be 2 but was actually 3" Now the error message is more along " expected: 2 but was: 3 " There is a loss of information, the name of what was being tested. And I like to have it back. Was it removed because getting a string for this argument was dependant on a macro trick ? regards, Philippe -- Free the mallocs! |