
Base class for all tests to be run More...
#include <test/test.hh>
Public Member Functions | |
| Base (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. | |
| bool | fixpoint (void) |
| Throw a coin whether to compute a fixpoint. | |
| 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 (Gecode::Support::RandomGenerator &rand) |
| Throw a coin whether to compute a fixpoint. | |
Related Symbols | |
(Note that these are not member symbols.) | |
| int | main (int argc, char *argv[]) |
| Main function. | |
Mapping scalar values to strings | |
| Gecode::Support::RandomGenerator | _rand |
| Random number generator. | |
| static std::string | str (bool b) |
| Map bool to string. | |
| static std::string | str (int i) |
| Map integer to string. | |
| static std::string | str (const Gecode::IntArgs &i) |
| Map integer array to string. | |
| Test::Base::Base | ( | std::string | s | ) |
Create and register test with name s.
|
virtual |
Destructor.
|
static |
Sort tests alphabetically.
|
inline |
|
inlinestatic |
|
inline |
|
pure virtual |
Run test.
Implemented in Test::Assign::BoolTest, Test::Assign::FloatTest, Test::Assign::IntTest, Test::Assign::SetTest, Test::Branch::BoolTest, Test::Branch::FloatTest, Test::Branch::IntTest, Test::Branch::SetTest, Test::FlatZinc::FlatZincErrorTest, Test::FlatZinc::FlatZincTest, Test::Float::Test, Test::Int::Test, and Test::Set::SetTest.
|
inline |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
Main function.
|
mutable |