tts v2.3.0
The Tiny Test System
 
Loading...
Searching...
No Matches

◆ TTS_CONSTEXPR_EXPECT_NOT

#define TTS_CONSTEXPR_EXPECT_NOT (   EXPR,
  ... 
)    TTS_CEXPR_EXPECT_NOT_ ## __VA_ARGS__ ( EXPR )

Check if a given expression evaluates to false at compile-time.

Parameters
EXPRExpression to evaluate and compare to false.
...Optional tag. If equals to REQUIRED, this test will stop the program if it fails.

Example

#define TTS_MAIN
#include <tts/tts.hpp>
TTS_CASE( "Check that counter-expectation can be met" )
{
constexpr int a = 42, b = 69;
};
#define TTS_CONSTEXPR_EXPECT_NOT(EXPR,...)
Check if a given expression evaluates to false at compile-time.
Definition: basic.hpp:192
#define TTS_CASE(ID)
Introduces a new test scenario and registers it into the current test driver.
Definition: case.hpp:147