CppUnit project page | FAQ | CppUnit home page |
Defines | |
#define | CPPUNIT_ASSERT(condition) |
Assertions that a condition is true . More... | |
#define | CPPUNIT_ASSERT_MESSAGE(message, condition) |
Assertion with a user specified message. More... | |
#define | CPPUNIT_FAIL(message) |
Fails with the specified message. More... | |
#define | CPPUNIT_ASSERT_EQUAL(expected, actual) |
Asserts that two values are equals. More... | |
#define | CPPUNIT_ASSERT_EQUAL_MESSAGE(message, expected, actual) |
Asserts that two values are equals, provides additional messafe on failure. More... | |
#define | CPPUNIT_ASSERT_DOUBLES_EQUAL(expected, actual, delta) |
Macro for primitive value comparisons. More... |
|
Value: ( ::CppUnit::Asserter::failIf( !(condition), \ (#condition), \ CPPUNIT_SOURCELINE() ) ) true .
|
|
Value: ( ::CppUnit::TestAssert::assertDoubleEquals( (expected), \ (actual), \ (delta), \ CPPUNIT_SOURCELINE() ) )
|
|
Value: ( ::CppUnit::TestAssert::assertEquals( (expected), \ (actual), \ CPPUNIT_SOURCELINE() ) ) Equality and string representation can be defined with an appropriate CppUnit::assertion_traits class. A diagnostic is printed if actual and expected values disagree. Requirement for expected and actual parameters:
|
|
Value: ( ::CppUnit::TestAssert::assertEquals( (expected), \ (actual), \ CPPUNIT_SOURCELINE(), \ (message) ) ) Equality and string representation can be defined with an appropriate assertion_traits class. A diagnostic is printed if actual and expected values disagree. The message is printed in addition to the expected and actual value to provide additional information. Requirement for expected and actual parameters:
|
|
Value: ( ::CppUnit::Asserter::failIf( !(condition), \ (message), \ CPPUNIT_SOURCELINE() ) )
|
|
Value: ( ::CppUnit::Asserter::fail( message, \ CPPUNIT_SOURCELINE() ) )
|
hosts this site. |
Send comments to: CppUnit Developers |