[Cppunit-cvs] cppunit/examples/money MoneyTest.cpp, 1.3, 1.4 MoneyTest.h, 1.2, 1.3
Brought to you by:
blep
From: Steven R. <sm...@us...> - 2008-02-21 03:48:09
|
Update of /cvsroot/cppunit/cppunit/examples/money In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv9722/examples/money Modified Files: MoneyTest.cpp MoneyTest.h Log Message: Replace deprecated CPPUNIT_TEST_EXCEPTION with code using CPPUNIT_ASSERT_THROW. Index: MoneyTest.h =================================================================== RCS file: /cvsroot/cppunit/cppunit/examples/money/MoneyTest.h,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** MoneyTest.h 14 Jul 2002 19:48:31 -0000 1.2 --- MoneyTest.h 21 Feb 2008 03:48:05 -0000 1.3 *************** *** 11,15 **** CPPUNIT_TEST( testEqual ); CPPUNIT_TEST( testAdd ); ! CPPUNIT_TEST_EXCEPTION( testAddThrow, IncompatibleMoneyError ); CPPUNIT_TEST_SUITE_END(); --- 11,15 ---- CPPUNIT_TEST( testEqual ); CPPUNIT_TEST( testAdd ); ! CPPUNIT_TEST( testAddThrow ); CPPUNIT_TEST_SUITE_END(); Index: MoneyTest.cpp =================================================================== RCS file: /cvsroot/cppunit/cppunit/examples/money/MoneyTest.cpp,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** MoneyTest.cpp 13 Oct 2005 21:25:39 -0000 1.3 --- MoneyTest.cpp 21 Feb 2008 03:48:05 -0000 1.4 *************** *** 80,83 **** // Process Money money( 123, "USD" ); ! money += money123FF; // should throw an exception } --- 80,83 ---- // Process Money money( 123, "USD" ); ! CPPUNIT_ASSERT_THROW( money += money123FF, IncompatibleMoneyError ); } |