From cdbca4119defbc5f9698906633eec05b5dc8272a Mon Sep 17 00:00:00 2001 From: "Steve M. Robbins" Date: Sat, 2 Jun 2001 21:29:52 +0000 Subject: Change to templatized TestAssert::assertEquals() and the new CPPUNIT_ASSERT* macros --- include/cppunit/extensions/Orthodox.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'include/cppunit/extensions/Orthodox.h') 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 void Orthodox::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)); } -- cgit v1.2.1