
Base class for tests for FlatZinc More...
#include <flatzinc.hh>
Public Member Functions | |
| FlatZincTest (const std::string &name, const std::string &source, const std::string &expected, bool allSolutions=false) | |
| Construct and register test. More... | |
| virtual bool | run (void) |
| Perform test. More... | |
Public Member Functions inherited from Test::Base | |
| Base (const std::string &s) | |
| Create and register test with name s. More... | |
| const std::string & | name (void) const |
| Return name of test. More... | |
| Base * | next (void) const |
| Return next test. More... | |
| void | next (Base *n) |
| Set next test. More... | |
| virtual | ~Base (void) |
| Destructor. More... | |
Protected Attributes | |
| std::string | _name |
| std::string | _source |
| std::string | _expected |
| bool | _allSolutions |
Additional Inherited Members | |
Static Public Member Functions inherited from Test::Base | |
| static void | sort (void) |
| Sort tests alphabetically. More... | |
| static Base * | tests (void) |
| Return all tests. More... | |
| static bool | fixpoint (void) |
| Throw a coin whether to compute a fixpoint. More... | |
Static Public Attributes inherited from Test::Base | |
| static Gecode::Support::RandomGenerator | rand = Gecode::Support::RandomGenerator() |
| Random number generator. More... | |
Related Functions inherited from Test::Base | |
| int | main (int argc, char *argv[]) |
| Main function. More... | |
Base class for tests for FlatZinc
Definition at line 55 of file flatzinc.hh.
| Test::FlatZinc::FlatZincTest::FlatZincTest | ( | const std::string & | name, |
| const std::string & | source, | ||
| const std::string & | expected, | ||
| bool | allSolutions = false |
||
| ) |
Construct and register test.
Definition at line 42 of file flatzinc.cpp.
|
virtual |
|
protected |
Definition at line 57 of file flatzinc.hh.
|
protected |
Definition at line 58 of file flatzinc.hh.
|
protected |
Definition at line 59 of file flatzinc.hh.
|
protected |
Definition at line 60 of file flatzinc.hh.