Add back forgotten rng testsuite (attibution: Peter Barnes noticed it)
This commit is contained in:
@@ -288,7 +288,7 @@ class RandomVariableStreamConstantTestCase : public TestCase
|
||||
{
|
||||
public:
|
||||
static const uint32_t N_MEASUREMENTS = 1000000;
|
||||
static const double TOLERANCE = 1e-8;
|
||||
static const double TOLERANCE;
|
||||
|
||||
RandomVariableStreamConstantTestCase ();
|
||||
virtual ~RandomVariableStreamConstantTestCase ();
|
||||
@@ -297,6 +297,8 @@ private:
|
||||
virtual void DoRun (void);
|
||||
};
|
||||
|
||||
const double RandomVariableStreamConstantTestCase::TOLERANCE = 1e-8;
|
||||
|
||||
RandomVariableStreamConstantTestCase::RandomVariableStreamConstantTestCase ()
|
||||
: TestCase ("Constant Random Variable Stream Generator")
|
||||
{
|
||||
@@ -336,7 +338,7 @@ RandomVariableStreamConstantTestCase::DoRun (void)
|
||||
class RandomVariableStreamSequentialTestCase : public TestCase
|
||||
{
|
||||
public:
|
||||
static const double TOLERANCE = 1e-8;
|
||||
static const double TOLERANCE;
|
||||
|
||||
RandomVariableStreamSequentialTestCase ();
|
||||
virtual ~RandomVariableStreamSequentialTestCase ();
|
||||
@@ -345,6 +347,8 @@ private:
|
||||
virtual void DoRun (void);
|
||||
};
|
||||
|
||||
const double RandomVariableStreamSequentialTestCase::TOLERANCE = 1e-8;
|
||||
|
||||
RandomVariableStreamSequentialTestCase::RandomVariableStreamSequentialTestCase ()
|
||||
: TestCase ("Sequential Random Variable Stream Generator")
|
||||
{
|
||||
@@ -2590,7 +2594,7 @@ RandomVariableStreamZetaAntitheticTestCase::DoRun (void)
|
||||
class RandomVariableStreamDeterministicTestCase : public TestCase
|
||||
{
|
||||
public:
|
||||
static const double TOLERANCE = 1e-8;
|
||||
static const double TOLERANCE;
|
||||
|
||||
RandomVariableStreamDeterministicTestCase ();
|
||||
virtual ~RandomVariableStreamDeterministicTestCase ();
|
||||
@@ -2599,6 +2603,8 @@ private:
|
||||
virtual void DoRun (void);
|
||||
};
|
||||
|
||||
const double RandomVariableStreamDeterministicTestCase::TOLERANCE = 1e-8;
|
||||
|
||||
RandomVariableStreamDeterministicTestCase::RandomVariableStreamDeterministicTestCase ()
|
||||
: TestCase ("Deterministic Random Variable Stream Generator")
|
||||
{
|
||||
|
||||
@@ -356,7 +356,10 @@ def build(bld):
|
||||
if env['ENABLE_GSL']:
|
||||
core.use.extend(['GSL', 'GSLCBLAS', 'M'])
|
||||
core_test.use.extend(['GSL', 'GSLCBLAS', 'M'])
|
||||
core_test.source.extend(['test/rng-test-suite.cc'])
|
||||
core_test.source.extend([
|
||||
'test/rng-test-suite.cc',
|
||||
'test/random-variable-stream-test-suite.cc'
|
||||
])
|
||||
|
||||
if (bld.env['ENABLE_EXAMPLES']):
|
||||
bld.recurse('examples')
|
||||
|
||||
Reference in New Issue
Block a user