Generated on Tue Oct 22 2013 00:49:09 for Gecode by doxygen 1.8.4
float.cpp File Reference

(Revision: 13435)

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

Go to the source code of this file.

Namespaces

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

Constant Groups

 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; \
}

Check the test result and handle failed test.

Definition at line 432 of file float.cpp.

#define START_TEST (   T)
Value:
if (opt.log) { \
olog.str(""); \
olog << ind(2) << "Testing: " << (T) << std::endl; \
} \
test = (T);

Start new test.

Definition at line 440 of file float.cpp.

Function Documentation

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

Definition at line 101 of file float.cpp.