Generated on Sat Feb 7 2015 02:01:33 for Gecode by doxygen 1.8.9.1
float.cpp File Reference

(Revision: 14357)

#include "test/float.hh"
#include <algorithm>
#include <iomanip>

Go to the source code of this file.

Namespaces

 Test
 General test support.
 
 Test::Float
 Testing domain floats.
 

Macros

#define CHECK_TEST(T, M)
 Check the test result and handle failed test. More...
 
#define START_TEST(T)
 Start new test. More...
 

Functions

std::ostream & operator<< (std::ostream &os, const Test::Float::Assignment &a)
 
Gecode::FloatNum Test::Float::randFValDown (Gecode::FloatNum l, Gecode::FloatNum u)
 
Gecode::FloatNum Test::Float::randFValUp (Gecode::FloatNum l, Gecode::FloatNum u)
 

Macro Definition Documentation

#define CHECK_TEST (   T,
 
)
Value:
if (opt.log) \
olog << ind(3) << "Check: " << (M) << std::endl; \
if (!(T)) { \
problem = (M); delete s; goto failed; \
}
Options opt
The options.
Definition: test.cpp:101
bool log
Whether to log the tests.
Definition: test.hh:95
std::ostringstream olog
Stream used for logging.
Definition: test.cpp:57

Check the test result and handle failed test.

Definition at line 437 of file float.cpp.

#define START_TEST (   T)
Value:
if (opt.log) { \
olog.str(""); \
olog << ind(2) << "Testing: " << (T) << std::endl; \
} \
test = (T);
Options opt
The options.
Definition: test.cpp:101
bool log
Whether to log the tests.
Definition: test.hh:95
std::ostringstream olog
Stream used for logging.
Definition: test.cpp:57

Start new test.

Definition at line 445 of file float.cpp.

Function Documentation

std::ostream& operator<< ( std::ostream &  os,
const Test::Float::Assignment a 
)

Definition at line 102 of file float.cpp.