Test::FlatZinc::FlatZincErrorTest Class Reference
#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. | |
| FlatZincErrorTest (TestTags tags, const std::string &name, const std::string &source, std::vector< std::string > cmdlineOpt={}, std::string expectedMessage="") | |
| Construct and register an error test with explicitly assigned tags. | |
| 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. | |
| FlatZincTest (TestTags tags, 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 a test with explicitly assigned tags. | |
| Public Member Functions inherited from Test::Base | |
| Base (std::string s) | |
| Create and register a standard test with name s. | |
| Base (std::string s, TestTags t) | |
| Create and register test with name s and tags t. | |
| const std::string & | name (void) const |
| Return name of test. | |
| TestTags | tags (void) const |
| Return tags for 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 | run_registered_tests (int argc, char *argv[]) |
| Run the tests in the process-wide registry. | |
Detailed Description
Definition at line 84 of file flatzinc.hh.
Constructor & Destructor Documentation
◆ FlatZincErrorTest() [1/2]
| Test::FlatZinc::FlatZincErrorTest::FlatZincErrorTest | ( | const std::string & | name, |
| const std::string & | source, | ||
| std::vector< std::string > | cmdlineOpt = {}, | ||
| std::string | expectedMessage = "" ) |
Construct and register test.
Definition at line 174 of file flatzinc.cpp.
◆ FlatZincErrorTest() [2/2]
| Test::FlatZinc::FlatZincErrorTest::FlatZincErrorTest | ( | TestTags | tags, |
| const std::string & | name, | ||
| const std::string & | source, | ||
| std::vector< std::string > | cmdlineOpt = {}, | ||
| std::string | expectedMessage = "" ) |
Construct and register an error test with explicitly assigned tags.
Definition at line 181 of file flatzinc.cpp.
Member Function Documentation
◆ run()
|
virtual |
Perform test.
Reimplemented from Test::FlatZinc::FlatZincTest.
Definition at line 243 of file flatzinc.cpp.
The documentation for this class was generated from the following files:
- test/flatzinc.hh
- test/flatzinc.cpp
