|
TTS v4.1.0
The Tiny Test System
|
Macros for performing direct true/false checks over predicate-like expressions. More...
Informations Reporting | |
| #define | TTS_PASS(...) |
| Reports a passing check with a message. | |
| #define | TTS_FAIL(...) |
| Reports a failing check with a message. | |
| #define | TTS_FATAL(...) |
| Reports a failing check with a message and ends the run. | |
Predicate Checks | |
| #define | TTS_EXPECT(EXPR, ...) |
| Checks that an expression is true. | |
| #define | TTS_EXPECT_NOT(EXPR, ...) |
| Checks that an expression is false. | |
| #define | TTS_CONSTEXPR_EXPECT(EXPR, ...) |
| Checks at compile time that a constant expression is true. | |
| #define | TTS_CONSTEXPR_EXPECT_NOT(EXPR, ...) |
| Checks at compile time that a constant expression is false. | |
| #define TTS_CONSTEXPR_EXPECT | ( | EXPR, | |
| ... ) |
#include <tts/test/basic.hpp>
Checks at compile time that a constant expression is true.
Evaluates the expression at compile time, so it must be a constant expression, or the test does not compile. Reports the check at run time with the others, as a pass or a failure.
| EXPR | Constant expression to check, converted to bool. |
| ... | REQUIRED ends the run when the check fails. |
| #define TTS_CONSTEXPR_EXPECT_NOT | ( | EXPR, | |
| ... ) |
#include <tts/test/basic.hpp>
Checks at compile time that a constant expression is false.
Evaluates the expression at compile time, so it must be a constant expression, or the test does not compile. Reports the check at run time with the others, as a pass or a failure.
| EXPR | Constant expression to check, converted to bool. |
| ... | REQUIRED ends the run when the check fails. |
| #define TTS_EXPECT | ( | EXPR, | |
| ... ) |
#include <tts/test/basic.hpp>
Checks that an expression is true.
| EXPR | Expression to check, converted to bool. |
| ... | REQUIRED ends the run when the check fails. |
| #define TTS_EXPECT_NOT | ( | EXPR, | |
| ... ) |
#include <tts/test/basic.hpp>
Checks that an expression is false.
| EXPR | Expression to check, converted to bool. |
| ... | REQUIRED ends the run when the check fails. |
| #define TTS_FAIL | ( | ... | ) |
#include <tts/engine/info.hpp>
Reports a failing check with a message.
| ... | A format string and its arguments, printed with the report. |
| #define TTS_FATAL | ( | ... | ) |
#include <tts/engine/info.hpp>
Reports a failing check with a message and ends the run.
Skips the cases left, and reports how many were skipped.
| ... | A format string and its arguments, printed with the report. |
| #define TTS_PASS | ( | ... | ) |