|
CPUnit 0.7 (beta)
The REAL C++ port of JUnit.
|
Go to the source code of this file.
Namespaces | |
| namespace | unittest |
| namespace | unittest::priv |
Functions | |
| template<class T > | |
| void | unittest::assert_equals (const std::string msg, const T &expected, const T &actual) |
| Check that two objects are equal, using ==. | |
| template<class T > | |
| void | unittest::assert_equals (const T &expected, const T &actual) |
| Check that two objects are equal, using ==. | |
| template<class T , class Eq > | |
| void | unittest::assert_equals (const std::string msg, const T &expected, const T &actual, const Eq &eq) |
| Check that two objects are equal, using a custom comparator. | |
| template<class T , class Eq > | |
| void | unittest::assert_equals (const T &expected, const T &actual, const Eq &eq) |
| Check that two objects are equal, using a custom comparator. | |
| void | unittest::assert_equals (const std::string msg, const double expected, const double actual, const double error) |
| Check that two floating point numbers are sufficiently closed to be reckoned as equal. | |
| void | unittest::assert_equals (const double expected, const double actual, const double error) |
| Check that two floating point numbers are sufficiently closed to be reckoned as equal. | |
| void | unittest::assert_true (const std::string msg, const bool statement) |
Checks that a statement is true. | |
| void | unittest::assert_true (const bool statement) |
Checks that a statement is true. | |
| void | unittest::assert_false (const std::string msg, const bool statement) |
Checks that a statement is false. | |
| void | unittest::assert_false (const bool statement) |
Checks that a statement is false. | |
| void | unittest::assert_not_null (const std::string msg, const void *data) |
Checks that a pointer is not NULL. | |
| void | unittest::assert_not_null (const void *data) |
Checks that a pointer is not NULL. | |
| void | unittest::assert_null (const std::string msg, const void *data) |
Checks that a pointer is NULL. | |
| void | unittest::assert_null (const void *data) |
Checks that a pointer is NULL. | |
| void | unittest::fail (const std::string msg) |
| Causes an AssertionException to be thrown. | |
| void | unittest::fail () |
| Causes an AssertionException to be thrown. | |
| template<class T > | |
| T | unittest::priv::max (const T &a, const T &b) |
| Returns the larger of two values. | |
| template<class T > | |
| T | unittest::priv::abs (const T &a) |
| Returns the absolute value of an object. | |
| template<class T > | |
| void | unittest::priv::fail_equals (const std::string &msg, const T &expected, const T &actual) |
| Throws an AssertionException with a message consistent with being the cause of a failed assert_equals call. | |