diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2012-05-05 21:52:20 +0200 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2012-05-06 16:38:21 +0200 |
commit | 4dbaa35920fa376c48eedf8cc3440b3965a01caa (patch) | |
tree | a57b25baae810fba7594b764628405fada72bac1 /examples/cppunittest/TestAssertTest.h | |
parent | 7902eb988d167b6cddd88b6c5be4385b203080eb (diff) | |
download | cppunit-feature/new_assert_macros.tar.gz |
add new assertion macros for <, <=, > and >=feature/new_assert_macros
Now we support the following new macros:
- CPPUNIT_ASSERT_LESS
- CPPUNIT_ASSERT_GREATER
- CPPUNIT_ASSERT_LESSEQUAL
- CPPUNIT_ASSERT_GREATEREQUAL
Diffstat (limited to 'examples/cppunittest/TestAssertTest.h')
-rw-r--r-- | examples/cppunittest/TestAssertTest.h | 8 |
1 files changed, 8 insertions, 0 deletions
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(); |