Reviving name of target being tested in error messages
Philippe Fremy <[email protected]> Sun, 5 Jan 2003 00:06:55 +0100
| Newsgroups | gmane.comp.lib.cppunit.devel |
|---|---|
| Message-ID | <[email protected]> |
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! ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf