TTS v3.0.0
The Tiny Test System
Loading...
Searching...
No Matches
tts::realistic_generator< T > Struct Template Reference

Data generator using a realistic random distribution. More...

Detailed Description

template<typename T>
struct tts::realistic_generator< T >

Data generator using a realistic random distribution.

Example

#define TTS_MAIN // No need for main()
#include <tts/tts.hpp>
float ok_x (float x) { return x; }
float bad_x(float x) { return x + x*1e-7f; }
TTS_CASE( "Test range check" )
{
, float, float , ok_x, bad_x
, 2.
);
};
#define TTS_ULP_RANGE_CHECK(Producer, RefType, NewType, RefFunc, NewFunc, Ulpmax)
Generate a range based test between two functions.
Definition ranges.hpp:205
#define TTS_CASE(ID)
Introduces a new test scenario and registers it into the current test driver.
Definition case.hpp:147
Data generator using a realistic random distribution.
Definition ranges.hpp:270
See also
realistic_distribution
Template Parameters
TType of data to generate