[Cppunit-cvs] cppunit/examples/cppunittest TestAssertTest.cpp, 1.11, 1.12 TestAssertTest.h, 1.6, 1.
Brought to you by:
blep
From: Steven R. <sm...@us...> - 2007-01-27 15:50:15
|
Update of /cvsroot/cppunit/cppunit/examples/cppunittest In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv8653/examples/cppunittest Modified Files: TestAssertTest.cpp TestAssertTest.h Log Message: * examples/cppunittest/TestAssertTest.cpp: * examples/cppunittest/TestAssertTest.h: Remove declaration of unimplemented functions testAssertDoubleNotEquals1 and testAssertDoubleNotEquals2. Factor new method testAssertDoubleNonFinite out of existing testAssertDoubleEquals. Index: TestAssertTest.h =================================================================== RCS file: /cvsroot/cppunit/cppunit/examples/cppunittest/TestAssertTest.h,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** TestAssertTest.h 13 Mar 2004 12:52:57 -0000 1.6 --- TestAssertTest.h 27 Jan 2007 15:50:11 -0000 1.7 *************** *** 17,20 **** --- 17,21 ---- CPPUNIT_TEST( testAssertMessageFalse ); CPPUNIT_TEST( testAssertDoubleEquals ); + CPPUNIT_TEST( testAssertDoubleNonFinite ); CPPUNIT_TEST( testFail ); CPPUNIT_TEST_SUITE_END(); *************** *** 43,48 **** void testAssertDoubleEquals(); ! void testAssertDoubleNotEquals1(); ! void testAssertDoubleNotEquals2(); void testAssertLongEquals(); --- 44,48 ---- void testAssertDoubleEquals(); ! void testAssertDoubleNonFinite(); void testAssertLongEquals(); Index: TestAssertTest.cpp =================================================================== RCS file: /cvsroot/cppunit/cppunit/examples/cppunittest/TestAssertTest.cpp,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** TestAssertTest.cpp 27 Jan 2007 05:46:30 -0000 1.11 --- TestAssertTest.cpp 27 Jan 2007 15:50:11 -0000 1.12 *************** *** 172,176 **** --- 172,180 ---- CPPUNIT_ASSERT_ASSERTION_FAIL( CPPUNIT_ASSERT_DOUBLES_EQUAL( 1.1, 1.2, 0.09 ) ); CPPUNIT_ASSERT_ASSERTION_FAIL( CPPUNIT_ASSERT_DOUBLES_EQUAL( 1.2, 1.1, 0.09 ) ); + } + void + TestAssertTest::testAssertDoubleNonFinite() + { double inf = std::numeric_limits<double>::infinity(); CPPUNIT_ASSERT_ASSERTION_FAIL( CPPUNIT_ASSERT_DOUBLES_EQUAL( inf, 0.0, 1.0 ) ); |