Base class for tests for FlatZinc
More...
#include <test/flatzinc.hh>
|
| | FlatZincTest (const std::string &name, const std::string &source, const std::string &expected, bool allSolutions=false, std::vector< std::string > cmdlineOpt={}, OutputCheck check=OutputCheck(), BeforeRun before=BeforeRun()) |
| | Construct and register test.
|
| virtual bool | run (void) |
| | Perform test.
|
| | 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.
|
| bool | fixpoint (void) |
| | Throw a coin whether to compute a fixpoint.
|
| virtual | ~Base (void) |
| | Destructor.
|
|
| typedef std::function< bool(const std::string &)> | OutputCheck |
| typedef std::function< void(void)> | BeforeRun |
Base class for tests for FlatZinc
Definition at line 55 of file flatzinc.hh.
◆ OutputCheck
◆ BeforeRun
◆ FlatZincTest()
| Test::FlatZinc::FlatZincTest::FlatZincTest |
( |
const std::string & | name, |
|
|
const std::string & | source, |
|
|
const std::string & | expected, |
|
|
bool | allSolutions = false, |
|
|
std::vector< std::string > | cmdlineOpt = {}, |
|
|
OutputCheck | check = OutputCheck(), |
|
|
BeforeRun | before = BeforeRun() ) |
Construct and register test.
◆ run()
| virtual bool Test::FlatZinc::FlatZincTest::run |
( |
void | | ) |
|
|
virtual |
◆ _name
| std::string Test::FlatZinc::FlatZincTest::_name |
|
protected |
◆ _source
| std::string Test::FlatZinc::FlatZincTest::_source |
|
protected |
◆ _expected
| std::string Test::FlatZinc::FlatZincTest::_expected |
|
protected |
◆ _allSolutions
| bool Test::FlatZinc::FlatZincTest::_allSolutions |
|
protected |
◆ _cmdlineOpt
| std::vector<std::string> Test::FlatZinc::FlatZincTest::_cmdlineOpt |
|
protected |
◆ _check
◆ _before
| BeforeRun Test::FlatZinc::FlatZincTest::_before |
|
protected |
The documentation for this class was generated from the following file: