Defines a data generator that always return the same value.
This generator produces always the same value provided at construction converted to the target type.
- Template Parameters
-
| T | Type of the value to be produced |
#define TTS_MAIN
#include <tts/tts.hpp>
#include <array>
(std::array<float, 10>, int, double),
{
if constexpr(std::is_arithmetic_v<T>) {
TTS_EQUAL(
args,
static_cast<T>(13.37)); }
else
{
for(std::size_t
i = 0;
i <
args.size(); ++
i)
{
}
}
};
#define TTS_EQUAL(LHS, RHS,...)
Performs equality comparison between two expressions.
Definition relation.hpp:134
#define TTS_CASE_WITH(ID, TYPES,...)
Introduces a template test case providing dynamically generated data to the test code.
Definition case.hpp:201
Defines a data generator that always return the same value.
Definition generator.hpp:137