Base class for all tests to be run More...
#include <test.hh>
Public Member Functions | |
Base (const std::string &s) | |
Create and register test with name s. | |
const std::string & | name (void) const |
Return name of test. | |
Base * | next (void) const |
Return next test. | |
void | next (Base *n) |
Set next test. | |
virtual bool | run (void)=0 |
Run test. | |
virtual | ~Base (void) |
Destructor. |
Static Public Member Functions | |
static void | sort (void) |
Sort tests alphabetically. | |
static Base * | tests (void) |
Return all tests. | |
static bool | fixpoint (void) |
Throw a coin whether to compute a fixpoint. |
Static Public Attributes | |
static Gecode::Support::RandomGenerator | rand = Gecode::Support::RandomGenerator() |
Random number generator. |
Related Functions | |
(Note that these are not member functions.) | |
int | main (int argc, char *argv[]) |
Main function. |
Test::Base::Base | ( | const std::string & | s | ) |
|
static |
|
inline |
|
inlinestatic |
|
inline |
|
pure virtual |
Run test.
Implemented in Test::Search::Best< Model, Engine >, Test::Search::DFS< Model >, Test::Set::SetTest, Test::Array::SharedArrayIterator, Test::Int::Test, Test::Array::ViewArrayIterator, Test::Array::VarArgsIterator, Test::Array::VarArrayIterator, Test::Int::Distinct::Pathological, Test::Branch::SetTest, Test::Assign::SetTest, Test::AFC, Test::Branch::BoolTest, Test::Assign::BoolTest, Test::Branch::IntTest, and Test::Assign::IntTest.
|
inlinestatic |
|
related |
|
static |