CppUnit project page FAQ CppUnit home page

Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Compound List | File List | Namespace Members | Compound Members | File Members | Related Pages

TestAssert.h File Reference

#include <cppunit/Portability.h>
#include <cppunit/Exception.h>
#include <cppunit/Asserter.h>

Go to the source code of this file.

Namespaces

namespace  CppUnit
namespace  CppUnit::TestAssert

Defines

#define CPPUNIT_ASSERT(condition)
 Assertions that a condition is true.

#define CPPUNIT_ASSERT_MESSAGE(message, condition)
 Assertion with a user specified message.

#define CPPUNIT_FAIL(message)
 Fails with the specified message.

#define CPPUNIT_ASSERT_EQUAL(expected, actual)
 Asserts that two values are equals.

#define CPPUNIT_ASSERT_EQUAL_MESSAGE(message, expected, actual)
 Asserts that two values are equals, provides additional messafe on failure.

#define CPPUNIT_ASSERT_DOUBLES_EQUAL(expected, actual, delta)
 Macro for primitive value comparisons.


SourceForge Logo hosts this site. Send comments to:
CppUnit Developers