diff options
| author | Steve M. Robbins <smr@sumost.ca> | 2001-06-02 21:29:52 +0000 |
|---|---|---|
| committer | Steve M. Robbins <smr@sumost.ca> | 2001-06-02 21:29:52 +0000 |
| commit | cdbca4119defbc5f9698906633eec05b5dc8272a (patch) | |
| tree | 6f0fc91b8cb7cc7b361966ffc8ab2e401e1e4c6e /include/cppunit/extensions/Orthodox.h | |
| parent | 99f54c0f4b53debc49f2081ce01158b2ed200c30 (diff) | |
| download | cppunit-cdbca4119defbc5f9698906633eec05b5dc8272a.tar.gz | |
Change to templatized TestAssert::assertEquals() and the new CPPUNIT_ASSERT* macros
Diffstat (limited to 'include/cppunit/extensions/Orthodox.h')
| -rw-r--r-- | include/cppunit/extensions/Orthodox.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/include/cppunit/extensions/Orthodox.h b/include/cppunit/extensions/Orthodox.h index e7667d1..39506f1 100644 --- a/include/cppunit/extensions/Orthodox.h +++ b/include/cppunit/extensions/Orthodox.h @@ -58,25 +58,25 @@ template <typename ClassUnderTest> void Orthodox<ClassUnderTest>::runTest () ClassUnderTest a, b, c; // make sure we have an equality operator - assert (a == b); + CPPUNIT_ASSERT (a == b); // check the inverse b.operator= (a.operator! ()); - assert (a != b); + CPPUNIT_ASSERT (a != b); // double inversion b = !!a; - assert (a == b); + CPPUNIT_ASSERT (a == b); // invert again b = !a; // check calls c = a; - assert (c == call (a)); + CPPUNIT_ASSERT (c == call (a)); c = b; - assert (c == call (b)); + CPPUNIT_ASSERT (c == call (b)); } |
