|
TTS v4.1.0
The Tiny Test System
|
Macros for performing checks related to exceptions handling. More...
Macros | |
| #define | TTS_NO_THROW(EXPR, ...) |
| Checks that an expression throws no exception. | |
| #define | TTS_THROW(EXPR, EXCEPTION, ...) |
| Checks that an expression throws an exception of type EXCEPTION. | |
| #define TTS_NO_THROW | ( | EXPR, | |
| ... ) |
#include <tts/test/exceptions.hpp>
Checks that an expression throws no exception.
| EXPR | Expression to evaluate. |
| ... | REQUIRED ends the run when the check fails. |
| #define TTS_THROW | ( | EXPR, | |
| EXCEPTION, | |||
| ... ) |
#include <tts/test/exceptions.hpp>
Checks that an expression throws an exception of type EXCEPTION.
| EXPR | Expression to evaluate. |
| EXCEPTION | Type of the exception expected. |
| ... | REQUIRED ends the run when the check fails. |