From e298c653900aa83d02c50b6edd541668ba5002f0 Mon Sep 17 00:00:00 2001 From: Baptiste Lepilleur Date: Fri, 5 Nov 2004 21:47:21 +0000 Subject: 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. --- examples/cppunittest/TestAssertTest.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'examples/cppunittest/TestAssertTest.cpp') 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 & ) { -- cgit v1.2.1