Tweaked cppunit.cfg

This commit is contained in:
Daniel Marjamäki 2020-06-17 13:10:15 +02:00
parent 51a6af299f
commit fe4657f218
1 changed files with 7 additions and 7 deletions

View File

@ -5,13 +5,13 @@
<define name="CPPUNIT_TEST(test)" value=""/>
<define name="CPPUNIT_TEST_SUITE_END()" value=""/>
<!-- Macros see http://cppunit.sourceforge.net/doc/cvs/group___assertions.html -->
<define name="CPPUNIT_ASSERT(condition)" value=""/>
<define name="CPPUNIT_ASSERT_MESSAGE(message, condition)" value=""/>
<define name="CPPUNIT_FAIL(message)" value=""/>
<define name="CPPUNIT_ASSERT_EQUAL(expected, actual)" value=""/>
<define name="CPPUNIT_ASSERT_EQUAL_MESSAGE(message, expected, actual)" value=""/>
<define name="CPPUNIT_ASSERT_DOUBLES_EQUAL(expected, actual, delta)" value=""/>
<define name="CPPUNIT_ASSERT_DOUBLES_EQUAL_MESSAGE(message, expected, actual, delta)" value=""/>
<define name="CPPUNIT_ASSERT(condition)" value="if (!(condition)) throw false;"/>
<define name="CPPUNIT_ASSERT_MESSAGE(message, condition)" value="if (!(condition)) throw message;"/>
<define name="CPPUNIT_FAIL(message)" value="throw message;"/>
<define name="CPPUNIT_ASSERT_EQUAL(expected, actual)" value="if (expected != actual) throw false;"/>
<define name="CPPUNIT_ASSERT_EQUAL_MESSAGE(message, expected, actual)" value="if (expected != actual) throw message;"/>
<define name="CPPUNIT_ASSERT_DOUBLES_EQUAL(expected, actual, delta)" value="if (std::abs((expected) - (actual)) &gt; delta) throw false;"/>
<define name="CPPUNIT_ASSERT_DOUBLES_EQUAL_MESSAGE(message, expected, actual, delta)" value="if (std::abs((expected) - (actual)) &gt; delta) throw message;"/>
<define name="CPPUNIT_ASSERT_THROW(expression, ExceptionType)" value=""/>
<define name="CPPUNIT_ASSERT_THROW_MESSAGE(message, expression, ExceptionType)" value=""/>
<define name="CPPUNIT_ASSERT_NO_THROW(expression)" value=""/>