26 lines
560 B
C++
26 lines
560 B
C++
#include "../rng.h"
|
|
|
|
#pragma once
|
|
|
|
namespace splat {
|
|
class RNGTEST {
|
|
public:
|
|
bool passed(){
|
|
return testPassed;
|
|
}
|
|
double value(){
|
|
return testPValue;
|
|
}
|
|
virtual ~RNGTEST() = default;
|
|
virtual std::string getName() {return "N/A";};
|
|
RNGTEST(std::vector<std::bitset<32>> &testData) : data(testData){
|
|
};
|
|
protected:
|
|
std::vector<std::bitset<32>> &data;
|
|
bool testPassed;
|
|
double testPValue;
|
|
virtual double runTest(std::vector<std::bitset<32>> &data) {return -1.0;};
|
|
};
|
|
}
|
|
|