Files
AltF4 c8ac6cfce8 Add support for Java's Random() class PRNG
- This commit has a lot going on, since Java's PRNG uses signed
  64 bit seeds. Blah! So we changed a lot of plumbing to support
  that. That's why so many files were touched.
- Added -s and S flags to support manual specification of seeding
  ranges.
- Also added support for Java's bounded random. IE: nextInt(int)
2015-08-25 10:33:05 -07:00

30 lines
537 B
C++

#ifndef TESTJAVA_H_
#define TESTJAVA_H_
#include <cppunit/TestFixture.h>
#include <cppunit/extensions/HelperMacros.h>
#include "../prngs/Java.h"
class TestJava: public CPPUNIT_NS::TestFixture
{
CPPUNIT_TEST_SUITE(TestJava);
CPPUNIT_TEST(initalizationTest);
CPPUNIT_TEST(seedTest);
CPPUNIT_TEST(randomTest);
CPPUNIT_TEST_SUITE_END();
public:
void setUp(void);
void tearDown(void);
protected:
void initalizationTest();
void seedTest();
void randomTest();
private:
};
#endif /* TESTJAVA_H_ */