I have a function that returns a double:
double d1 = compute(a,b,c);
when I do:
std::cout << d1 << std::endl;
I get:
0.125
but when I do:
BOOST_CHECK_EQUAL(d1, 0.125);
I get:
[0.12499999999999999 != 0.125]
failed!
Does unittesting in boost use a special precision?