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

◆ TTS_CONSTEXPR_NOT_EQUAL

#define TTS_CONSTEXPR_NOT_EQUAL (   LHS,
  RHS,
  ... 
)    TTS_CEXPR_RELATION(LHS,RHS, neq, "!=" , "==", __VA_ARGS__)

Performs inequality comparison between two expressions at compile-time.

This comparison is performed by using the proper operator== overload or by a custom comparison.

Parameters
LHS,RHSExpressions to compare.
...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 correctness of constexpr equality tests" )
{
constexpr float a = 4.5f;
constexpr int b = 45;
};
#define TTS_CASE(ID)
Introduces a new test scenario and registers it into the current test driver.
Definition: case.hpp:147
#define TTS_CONSTEXPR_NOT_EQUAL(LHS, RHS,...)
Performs inequality comparison between two expressions at compile-time.
Definition: relation.hpp:331