![]() |
Home | Libraries | People | FAQ | More |
Evaluate a test condition.
template< class Condition, class String> bool expect( Condition const& shouldBeTrue, String const& reason, char const* file, int line);
This function provides improved logging by incorporating the file name and line number into the reported output on failure, as well as additional text specified by the caller.
|
Name |
Description |
|---|---|
|
|
The condition to test. The condition is evaluated in a boolean context. |
|
|
Optional added text to output on a failure. |
|
|
The source code file where the test failed. |
|
|
The source code line number where the test failed. |
true if the test condition
indicates success.