Defines a data generator that produce a ramp of data.
This generator produces a ramp starting from an initial value and increasing by a fixed step at each call. I.e., for a size N, the produced values are: start, start+step, start+2*step, ..., start+(N-1)*step.
- Template Parameters
-
| T | Type of the initial value |
| U | Type of the step value |
#define TTS_MAIN
#include <tts/tts.hpp>
#include <array>
(std::array<float, 10>, int, double),
{
if constexpr(std::is_arithmetic_v<T>)
{
}
else
{
for(std::size_t
i = 0;
i <
ramp1.size(); ++
i)
{
}
for(std::size_t
i = 0;
i <
ramp2.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 produce a ramp of data.
Definition generator.hpp:164