float.cpp File Reference
Go to the source code of this file.
Namespaces | |
| namespace | Test |
| General test support. | |
| namespace | Test::Float |
| Testing domain floats. | |
Macros | |
| #define | CHECK_TEST(T, M) |
| Check the test result and handle failed test. | |
| #define | START_TEST(T) |
| Start new test. | |
Functions | |
| std::ostream & | operator<< (std::ostream &os, const Test::Float::Assignment &a) |
| Gecode::FloatNum | Test::Float::randFValDown (Gecode::FloatNum l, Gecode::FloatNum u, Gecode::Support::RandomGenerator &rand) |
| Gecode::FloatNum | Test::Float::randFValUp (Gecode::FloatNum l, Gecode::FloatNum u, Gecode::Support::RandomGenerator &rand) |
Macro Definition Documentation
◆ CHECK_TEST
| #define CHECK_TEST | ( | T, | |
| M ) |
Value:
do { \
if (opt.log) \
olog << ind(3) << "Check: " << (M) << std::endl; \
if (!(T)) { \
problem = (M); delete s; goto failed; \
} \
} while (false)
Check the test result and handle failed test.
◆ START_TEST
| #define START_TEST | ( | T | ) |
Function Documentation
◆ operator<<()
| std::ostream & operator<< | ( | std::ostream & | os, |
| const Test::Float::Assignment & | a ) |
