...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
Assertions |
Short description |
---|---|
General purpose assertion macro. |
|
Simple validation of a boolean predicate value. |
|
Bitwise equality test of two elements. |
|
Equality test of two elements. |
|
Element-wise equality test of two collections. |
|
Floating point comparison using a percentage of deviation. |
|
Floating point comparison using the fraction of the compared operands. |
|
Exception detection and validation check. |
|
Comparison of two values (with convenient reporting). |
|
Comparison of two values (with convenient reporting). |
|
Comparison of two values (with convenient reporting). |
|
Comparison of two values (with convenient reporting). |
|
Same as |
|
Comparison of two values (with convenient reporting). |
|
Checks an expression does not throw any exception. |
|
Checks a list of arguments against a predicate functor. |
|
Checks a value is small according to a tolerance. |
|
Checks an expression throws a specific type of expression. |
|
Indicates the number of expected failures for a test case |
|
Logs an error message, fails but does not abort the current test. |
|
Logs an error message, fails and aborts the current test. |
|
Checks at runtime whether or not the supplied preprocessor symbol is defined. |
Decorators |
Short description |
---|---|
Indicates the expected failures of a test unit. |
|
Sets the maximum amount of time a test unit should take. |
|
Sets the floating point comparison tolerance for a test unit. |
Control macros |
Short description |
---|---|
When defined, test assertions are compiled in debugger-friendly mode. |
|
When defined, test assertions are compiled in two modes (debugger-friendly and full-featured), and the version is selected at run-time. |