|
TTS v4.0.0
The Tiny Test System
|
Macros for performing direct true/false checks over predicate-like expressions. More...
Informations Reporting | |
| #define | TTS_PASS(...) |
| Force a passing test and display a message. | |
| #define | TTS_FAIL(...) |
| Force a failing test and display a message. | |
| #define | TTS_FATAL(...) |
| Force a failing test, display a message and halt the test suite. | |
Predicate Checks | |
| #define | TTS_EXPECT(EXPR, ...) |
| Check if a given expression evaluates to true. | |
| #define | TTS_EXPECT_NOT(EXPR, ...) |
| Check if a given expression evaluates to false. | |
| #define | TTS_CONSTEXPR_EXPECT(EXPR, ...) |
| Check if a given expression evaluates to true at compile-time. | |
| #define | TTS_CONSTEXPR_EXPECT_NOT(EXPR, ...) |
| Check if a given expression evaluates to false at compile-time. | |
| #define TTS_CONSTEXPR_EXPECT | ( | EXPR, | |
| ... ) |
#include <tts/test/basic.hpp>
Check if a given expression evaluates to true at compile-time.
| EXPR | Expression to evaluate and compare to true. |
| ... | Optional tag. If equals to REQUIRED, this test will stop the program if it fails. |
| #define TTS_CONSTEXPR_EXPECT_NOT | ( | EXPR, | |
| ... ) |
#include <tts/test/basic.hpp>
Check if a given expression evaluates to false at compile-time.
| EXPR | Expression to evaluate and compare to false. |
| ... | Optional tag. If equals to REQUIRED, this test will stop the program if it fails. |
| #define TTS_EXPECT | ( | EXPR, | |
| ... ) |
#include <tts/test/basic.hpp>
Check if a given expression evaluates to true.
| EXPR | Expression to evaluate and compare to true. |
| ... | Optional tag. If equals to REQUIRED, this test will stop the program if it fails. |
| #define TTS_EXPECT_NOT | ( | EXPR, | |
| ... ) |
#include <tts/test/basic.hpp>
Check if a given expression evaluates to false.
| EXPR | Expression to evaluate and compare to false. |
| ... | Optional tag. If equals to REQUIRED, this test will stop the program if it fails. |
| #define TTS_FAIL | ( | ... | ) |
#include <tts/engine/info.hpp>
Force a failing test and display a message.
| ... | A format string and potential arguments to display as additional informations |
| #define TTS_FATAL | ( | ... | ) |
#include <tts/engine/info.hpp>
Force a failing test, display a message and halt the test suite.
| ... | A format string and potential arguments to display as additional informations |
| #define TTS_PASS | ( | ... | ) |
#include <tts/engine/info.hpp>
Force a passing test and display a message.
| ... | A format string and potential arguments to display as additional informations |