Generated on for Gecode by doxygen 1.17.0
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.
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.
Basenext (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 Basetests (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

Detailed Description

Definition at line 77 of file flatzinc.hh.

Constructor & Destructor Documentation

◆ FlatZincErrorTest()

Test::FlatZinc::FlatZincErrorTest::FlatZincErrorTest ( const std::string & name,
const std::string & source,
std::vector< std::string > cmdlineOpt = {},
std::string expectedMessage = "" )

Construct and register test.

Member Function Documentation

◆ run()

virtual bool Test::FlatZinc::FlatZincErrorTest::run ( void )
virtual

Perform test.

Reimplemented from Test::FlatZinc::FlatZincTest.


The documentation for this class was generated from the following file: