[Cppunit-cvs] cppunit2/src/cpput testinfo.cpp,1.5,1.6
Brought to you by:
blep
From: Baptiste L. <bl...@us...> - 2004-11-20 15:47:24
|
Update of /cvsroot/cppunit/cppunit2/src/cpput In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25665/src/cpput Modified Files: testinfo.cpp Log Message: * added quick accessor for actual/expected Index: testinfo.cpp =================================================================== RCS file: /cvsroot/cppunit/cppunit2/src/cpput/testinfo.cpp,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** testinfo.cpp 20 Nov 2004 15:07:00 -0000 1.5 --- testinfo.cpp 20 Nov 2004 15:47:15 -0000 1.6 *************** *** 181,184 **** --- 181,196 ---- } + + OpenTest::Properties ¤tAssertionActual() + { + return currentAssertion()["actual"].asProperties(); + } + + + OpenTest::Properties ¤tAssertionExpected() + { + return currentAssertion()["expected"].asProperties(); + } + void realizeAssertion() { *************** *** 208,213 **** } - - void appendFaultToResult( const OpenTest::Properties &fault ) { --- 220,223 ---- |