diff options
| author | Steve M. Robbins <smr@sumost.ca> | 2001-07-13 03:32:16 +0000 |
|---|---|---|
| committer | Steve M. Robbins <smr@sumost.ca> | 2001-07-13 03:32:16 +0000 |
| commit | 8cdfc19f2213bf1de4aee4bc5e799af49b6608d0 (patch) | |
| tree | a2ee78ef29c07a7cf5d5077885364b9d86ecc69a /examples/cppunittest/TestAssertTest.cpp | |
| parent | c9e6d8ad1f9201030bbfeb27164cf748c96f21c6 (diff) | |
| download | cppunit-8cdfc19f2213bf1de4aee4bc5e799af49b6608d0.tar.gz | |
Add tests for CPPUNIT_ASSERT_EQUAL.
Diffstat (limited to 'examples/cppunittest/TestAssertTest.cpp')
| -rw-r--r-- | examples/cppunittest/TestAssertTest.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/examples/cppunittest/TestAssertTest.cpp b/examples/cppunittest/TestAssertTest.cpp index c6eb73c..05f2b25 100644 --- a/examples/cppunittest/TestAssertTest.cpp +++ b/examples/cppunittest/TestAssertTest.cpp @@ -58,6 +58,17 @@ TestAssertTest::testAssertFalse() } +static int foo() { return 1; } + + +void +TestAssertTest::testAssertEqual() +{ + CPPUNIT_ASSERT_EQUAL(1,1); + CPPUNIT_ASSERT_EQUAL( 1, foo() ); +} + + void TestAssertTest::testAssertMessageTrue() { |
