From 4dbaa35920fa376c48eedf8cc3440b3965a01caa Mon Sep 17 00:00:00 2001 From: Markus Mohrhard Date: Sat, 5 May 2012 21:52:20 +0200 Subject: add new assertion macros for <, <=, > and >= Now we support the following new macros: - CPPUNIT_ASSERT_LESS - CPPUNIT_ASSERT_GREATER - CPPUNIT_ASSERT_LESSEQUAL - CPPUNIT_ASSERT_GREATEREQUAL --- examples/cppunittest/TestAssertTest.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'examples/cppunittest/TestAssertTest.h') diff --git a/examples/cppunittest/TestAssertTest.h b/examples/cppunittest/TestAssertTest.h index a672d38..01d303e 100644 --- a/examples/cppunittest/TestAssertTest.h +++ b/examples/cppunittest/TestAssertTest.h @@ -13,6 +13,10 @@ class TestAssertTest : public CPPUNIT_NS::TestFixture CPPUNIT_TEST( testAssertAssertionPass ); CPPUNIT_TEST( testAssert ); CPPUNIT_TEST( testAssertEqual ); + CPPUNIT_TEST( testAssertLess ); + CPPUNIT_TEST( testAssertGreater ); + CPPUNIT_TEST( testAssertLessEqual ); + CPPUNIT_TEST( testAssertGreaterEqual ); CPPUNIT_TEST( testAssertMessageTrue ); CPPUNIT_TEST( testAssertMessageFalse ); CPPUNIT_TEST( testAssertDoubleEquals ); @@ -39,6 +43,10 @@ public: void testAssert(); void testAssertEqual(); + void testAssertLess(); + void testAssertGreater(); + void testAssertLessEqual(); + void testAssertGreaterEqual(); void testAssertMessageTrue(); void testAssertMessageFalse(); -- cgit v1.2.1