Add back forgotten rng testsuite (attibution: Peter Barnes noticed it)

This commit is contained in:
mmiozzo
2014-03-20 23:37:16 +01:00
parent c6ccba38d4
commit efccb54a60
2 changed files with 13 additions and 4 deletions

View File

@@ -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")
{

View File

@@ -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')