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

◆ TTS_CONSTEXPR_EXPECT

#define TTS_CONSTEXPR_EXPECT (   EXPR,
  ... 
)    TTS_CEXPR_EXPECT_ ## __VA_ARGS__ ( EXPR )

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

Parameters
EXPRExpression to evaluate and compare to true.
...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 expectation can be met" )
{
constexpr int a = 42, b = 69;
};
#define TTS_CONSTEXPR_EXPECT(EXPR,...)
Check if a given expression evaluates to true at compile-time.
Definition: basic.hpp:141
#define TTS_CASE(ID)
Introduces a new test scenario and registers it into the current test driver.
Definition: case.hpp:147