summaryrefslogtreecommitdiff
path: root/examples/cppunittest/TestAssertTest.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/cppunittest/TestAssertTest.cpp')
-rw-r--r--examples/cppunittest/TestAssertTest.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/examples/cppunittest/TestAssertTest.cpp b/examples/cppunittest/TestAssertTest.cpp
index 9481184..c65d97b 100644
--- a/examples/cppunittest/TestAssertTest.cpp
+++ b/examples/cppunittest/TestAssertTest.cpp
@@ -41,7 +41,7 @@ TestAssertTest::tearDown()
void
TestAssertTest::testAssertThrow()
{
- CPPUNIT_ASSERT_THROW( throw std::exception( "dummy" ), std::exception );
+ CPPUNIT_ASSERT_THROW( throw std::exception(), std::exception );
try
{
@@ -52,7 +52,7 @@ TestAssertTest::testAssertThrow()
return;
}
- throw std::exception( "CPPUT_ASSERT_THROW( 1234, std::exception ) did not fail." );
+ throw std::exception();
}
@@ -63,13 +63,13 @@ TestAssertTest::testAssertNoThrow()
try
{
- CPPUNIT_ASSERT_NO_THROW( throw std::exception( "dummy" ) );
+ CPPUNIT_ASSERT_NO_THROW( throw std::exception() );
}
catch ( CPPUNIT_NS::Exception & )
{
return;
}
- throw std::exception( "CPPUT_ASSERT_NO_THROW( throw std::exception( \"dummy\" ) ) did not fail." );
+ throw std::exception();
}
@@ -87,7 +87,7 @@ TestAssertTest::testAssertAssertionFail()
return;
}
- throw std::exception( "CPPUNIT_ASSERT_ASSERTION_FAIL( 1234 ) did not fail." );
+ throw std::exception();
}
@@ -105,7 +105,7 @@ TestAssertTest::testAssertAssertionPass()
return;
}
- throw std::exception( "CPPUNIT_ASSERT_ASSERTION_PASS did not fail." );
+ throw std::exception();
}