45 : _mask(static_cast<unsigned int>(t)) {}
48 : _mask(static_cast<unsigned int>(t0) |
49 static_cast<unsigned int>(t1)) {}
68 return (_mask & t._mask) != 0;
90 inline const std::string&
117 return rand(
opt.fixprob) == 0;
140 for (
int i=0; i<x.
size()-1; i++)
141 s +=
str(x[i]) +
",";
142 return "[" + s +
str(x[x.
size()-1]) +
"]";
int size(void) const
Return size of array (number of elements).
Passing integer arguments.
Base class for all tests to be run
Gecode::Support::RandomGenerator _rand
Random number generator.
Base(std::string s)
Create and register a standard test with name s.
static Base * tests(void)
Return all tests.
bool fixpoint(void)
Throw a coin whether to compute a fixpoint.
Base * next(void) const
Return next test.
const std::string & name(void) const
Return name of test.
static std::string str(bool b)
Map bool to string.
TestTags tags(void) const
Return tags for test.
bool list_tags
Whether to list known tags.
std::vector< std::pair< MatchType, const char * > > testpat
Patterns to test against.
bool log
Whether to log the tests.
unsigned int seed
The random seed to be used.
const char * start_from
Name of first test to start with.
Options(void)
Initialize options with defaults.
static const unsigned int deffixprob
Default fixpoint probability.
bool replay
Replay one named test from its reported random state.
bool list
Whether to list all tests.
unsigned int iter
Number of iterations for each test.
bool stop
Whether to stop on an error.
unsigned int threads
Number of threads to use.
unsigned int fixprob
The probability for computing a fixpoint.
static const int defiter
Default number of iterations.
TestTags testtags
Tags to test against.
bool list_with_tags
Whether to include tags when listing tests.
LinearCongruentialGenerator< 2147483647, 48271, 44488, 3399 > RandomGenerator
Default values for linear congruential generator.
TestTag
Tags for test selection.
@ check
Basic integrity tests.
@ standard
Standard test suite.
@ sweep
Really heavy sweep tests.