26 Apr
2015
26 Apr
'15
7:14 a.m.
Emil Dotchevski
Hello,
Can someone please tell me exactly what do I need to include and which namespace to use to get exact same behavior as:
#include
bool check( float a, float b, float tolerance ) { using namespace boost::test_tools; return check_is_close(a,b,fraction_tolerance(tolerance)); }
(The above used to work with older Boost versions but no longer.)
Do you refer to the develop branch? BOOST_TEST(a==b, tolerance); should do the same. Or BOOST_TEST(a==b); if tolerance is set for test case. Gennadiy