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

◆ TTS_NO_THROW

#define TTS_NO_THROW (   EXPR,
  ... 
)    TTS_NO_THROW_ ## __VA_ARGS__ ( EXPR )

Checks if a given expression throws no exception.

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

Example

#define TTS_MAIN
#include <tts/tts.hpp>
void bar() {}
TTS_CASE( "Check that nothrow function are detected as such" )
{
TTS_NO_THROW( bar() );
};
#define TTS_CASE(ID)
Introduces a new test scenario and registers it into the current test driver.
Definition: case.hpp:147
#define TTS_NO_THROW(EXPR,...)
Checks if a given expression throws no exception.
Definition: exceptions.hpp:109