Defines a data generator that produce random value using a given distribution.
More...
#include <tts/test/generator.hpp>
template<typename Distribution>
struct tts::sample< Distribution >
Defines a data generator that produce random value using a given distribution.
#define TTS_MAIN
#include <tts/tts.hpp>
#include <array>
, (std::array<float,10>)
)
(auto data)
{
for(auto v : data)
};
#define TTS_EXPECT(EXPR,...)
Check if a given expression evaluates to true.
Definition: basic.hpp:46
#define TTS_CASE_WITH(ID, TYPES, GENERATOR)
Introduces a template test case providing dynamically generated data to the test code.
Definition: case.hpp:258
auto generate(G... g)
Build a data generator.
Definition: generator.hpp:76
Defines a data generator that produce random value using a given distribution.
Definition: generator.hpp:276
|
| sample (Distribution d) |
| Specify the distribution to use for sampling data.
|
|