
#include <test/flatzinc.hh>
Public Member Functions | |
| FlatZincErrorTest (const std::string &name, const std::string &source, std::vector< std::string > cmdlineOpt={}, std::string expectedMessage="") | |
| Construct and register test. | |
| virtual bool | run (void) |
| Perform test. | |
| Public Member Functions inherited from 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. | |
| Public Member Functions inherited from Test::Base | |
| 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. | |
Additional Inherited Members | |
| Static Public Member Functions inherited from Test::Base | |
| 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. | |
| 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. | |
| Gecode::Support::RandomGenerator | _rand |
| Random number generator. | |
| Protected Types inherited from Test::FlatZinc::FlatZincTest | |
| typedef std::function< bool(const std::string &)> | OutputCheck |
| typedef std::function< void(void)> | BeforeRun |
| Protected Attributes inherited from Test::FlatZinc::FlatZincTest | |
| std::string | _name |
| std::string | _source |
| std::string | _expected |
| bool | _allSolutions |
| std::vector< std::string > | _cmdlineOpt |
| OutputCheck | _check |
| BeforeRun | _before |
| Related Symbols inherited from Test::Base | |
| int | main (int argc, char *argv[]) |
| Main function. | |
Definition at line 77 of file flatzinc.hh.
| Test::FlatZinc::FlatZincErrorTest::FlatZincErrorTest | ( | const std::string & | name, |
| const std::string & | source, | ||
| std::vector< std::string > | cmdlineOpt = {}, | ||
| std::string | expectedMessage = "" ) |
Construct and register test.
|
virtual |
Perform test.
Reimplemented from Test::FlatZinc::FlatZincTest.