[Cppunit-cvs] cppunit/doc Money.dox,1.4,1.5
Brought to you by:
blep
From: Baptiste L. <bl...@us...> - 2005-07-09 15:01:35
|
Update of /cvsroot/cppunit/cppunit/doc In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv3705/doc Modified Files: Money.dox Log Message: * doc/money.dox: fixed bad usage of CPPUNIT_ASSERT_EQUALS. Index: Money.dox =================================================================== RCS file: /cvsroot/cppunit/cppunit/doc/Money.dox,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** Money.dox 9 Jul 2005 07:42:47 -0000 1.4 --- Money.dox 9 Jul 2005 15:01:24 -0000 1.5 *************** *** 386,390 **** CPPUNIT_ASSERT( money12FF != money123FF ); // != amount CPPUNIT_ASSERT( money123USD != money123FF ); // != currency ! CPPUNIT_ASSERT( money12USD != money123FF ); // != currency and != amount }\endcode --- 386,390 ---- CPPUNIT_ASSERT( money12FF != money123FF ); // != amount CPPUNIT_ASSERT( money123USD != money123FF ); // != currency ! CPPUNIT_ASSERT( money12USD != money123FF ); // != currency and != amount }\endcode *************** *** 440,445 **** // Check ! CPPUNIT_ASSERT_EQUAL( expectedMoney == money.getAmount() ); // += works ! CPPUNIT_ASSERT( &money == &(money += money12FF) ); // += returns ref. on 'this'. }\endcode --- 440,445 ---- // Check ! CPPUNIT_ASSERT( expectedMoney == money ); // add works ! CPPUNIT_ASSERT( &money == &(money += money12FF) ); // add returns ref. on 'this'. }\endcode *************** *** 538,541 **** --- 538,542 ---- TODO: + - How to use CPPUNIT_ASSERT_EQUALS with Money - Copy constructor/Assignment operator - Introducing fixtures |