tts v2.3.0
The Tiny Test System
 
Loading...
Searching...
No Matches

◆ realistic_generator

template<typename T >
using tts::realistic_generator = typedef prng_generator<T, ::tts::realistic_distribution<T> >

Data generator using the tts::realistic_distribution random distribution.

Example

#define TTS_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_CASE(ID)
Introduces a new test scenario and registers it into the current test driver.
Definition: case.hpp:147
#define TTS_ULP_RANGE_CHECK(Producer, RefType, NewType, RefFunc, NewFunc, Ulpmax)
Generate a range based test between two functions.
Definition: ranges.hpp:274
Wraps any standard random distribution to be used as a Data Generator by TTS_ULP_RANGE_CHECK.
Definition: ranges.hpp:345
See also
realistic_distribution
Template Parameters
TType of data to generate