diff options
author | Baptiste Lepilleur <gaiacrtn@free.fr> | 2004-11-05 21:47:21 +0000 |
---|---|---|
committer | Baptiste Lepilleur <gaiacrtn@free.fr> | 2004-11-05 21:47:21 +0000 |
commit | e298c653900aa83d02c50b6edd541668ba5002f0 (patch) | |
tree | 8765c3a4ce3c04b9a3462de4c570779816f6fd7c /examples/cppunittest/TestAssertTest.cpp | |
parent | 23538b49b25d11680566e8203a618b21acc83c77 (diff) | |
download | cppunit-e298c653900aa83d02c50b6edd541668ba5002f0.tar.gz |
Include/cppunit/TestAssert.
include/cppunit/TestAssert.h:
* src/cppunit/TestAssert.cpp: integrated Neil Ferguson patch for missing
_MESSAGE assertion variants. Also enhanced the failure message of a
few assertions.
Diffstat (limited to 'examples/cppunittest/TestAssertTest.cpp')
-rw-r--r-- | examples/cppunittest/TestAssertTest.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/cppunittest/TestAssertTest.cpp b/examples/cppunittest/TestAssertTest.cpp index c65d97b..5c81a3f 100644 --- a/examples/cppunittest/TestAssertTest.cpp +++ b/examples/cppunittest/TestAssertTest.cpp @@ -41,11 +41,11 @@ TestAssertTest::tearDown() void TestAssertTest::testAssertThrow() { - CPPUNIT_ASSERT_THROW( throw std::exception(), std::exception ); + CPPUNIT_ASSERT_THROW( throw std::string(), std::string ); try { - CPPUNIT_ASSERT_THROW( 1234, std::exception ); + CPPUNIT_ASSERT_THROW( 1234, std::string ); } catch ( CPPUNIT_NS::Exception & ) { |