template<typename T>
struct tts::realistic_generator< T >
Data generator using a realistic random distribution.
#define TTS_MAIN
#include <tts/tts.hpp>
float ok_x (float x) { return x; }
float bad_x(float x) { return x + x*1e-7f; }
{
, 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
-
| T | Type of data to generate |