summaryrefslogtreecommitdiff
path: root/examples/cppunittest/TestAssertTest.cpp
diff options
context:
space:
mode:
authorBaptiste Lepilleur <gaiacrtn@free.fr>2004-11-05 21:47:21 +0000
committerBaptiste Lepilleur <gaiacrtn@free.fr>2004-11-05 21:47:21 +0000
commite298c653900aa83d02c50b6edd541668ba5002f0 (patch)
tree8765c3a4ce3c04b9a3462de4c570779816f6fd7c /examples/cppunittest/TestAssertTest.cpp
parent23538b49b25d11680566e8203a618b21acc83c77 (diff)
downloadcppunit-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.cpp4
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 & )
{