mirror of
https://github.com/BishopFox/untwister.git
synced 2026-11-07 10:35:58 -10:00
- 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)
30 lines
537 B
C++
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_ */
|