Macros for performing checks on types and their properties. More...
Macros | |
| #define | TTS_EXPECT_COMPILES(Symbols, Expression, ...) |
Checks if an Expression based on a list of Symbols will compile properly in a SFINAE context. | |
| #define | TTS_EXPECT_NOT_COMPILES(Symbols..., Expression, ...) |
Checks if an Expression based on a list of Symbols will not compile properly in a SFINAE context. | |
| #define | TTS_EXPR_IS(EXPR, TYPE, ...) |
| Checks if an Expression evaluates to a value of a given Type. | |
| #define | TTS_TYPE_IS(TYPE, REF, ...) |
Checks if two types satisfy std::is_same_v<Type,Target> == true. | |
| #define TTS_EXPECT_COMPILES | ( | Symbols, | |
| Expression, | |||
| ... | |||
| ) |
#include <tts/test/types.hpp>
Checks if an Expression based on a list of Symbols will compile properly in a SFINAE context.
| Symbols | Variadic lists of symbols used in the tests |
| Expression | Brace-enclosed expression to validate. |
| #define TTS_EXPECT_NOT_COMPILES | ( | Symbols..., | |
| Expression, | |||
| ... | |||
| ) |
#include <tts/test/types.hpp>
Checks if an Expression based on a list of Symbols will not compile properly in a SFINAE context.
| Symbols | Variadic lists of symbols used in the tests |
| Expression | Brace-enclosed expression to validate. |
| #define TTS_EXPR_IS | ( | EXPR, | |
| TYPE, | |||
| ... | |||
| ) |
#include <tts/test/types.hpp>
Checks if an Expression evaluates to a value of a given Type.
| EXPR | Expression to evaluate. |
| TYPE | Expected type. |
| ... | Optional tag. If equals to REQUIRED, this test will stop the program if it fails. |
| #define TTS_TYPE_IS | ( | TYPE, | |
| REF, | |||
| ... | |||
| ) |
#include <tts/test/types.hpp>
Checks if two types satisfy std::is_same_v<Type,Target> == true.
| TYPE | Type to compare. |
| REF | Expected type. |
| ... | Optional tag. If equals to REQUIRED, this test will stop the program if it fails. |