using BOOST_CHECK_CLOSE for long double comparisons

some documentation updates to both xml and util
This commit is contained in:
Shane Grant
2013-07-08 10:13:42 -07:00
parent 0912411844
commit cded3bea43
3 changed files with 24 additions and 16 deletions

View File

@@ -2133,7 +2133,8 @@ void test_complex()
BOOST_CHECK_EQUAL( o_float, i_float );
BOOST_CHECK_EQUAL( o_double, i_double );
BOOST_CHECK_EQUAL( o_ldouble, i_ldouble );
BOOST_CHECK_CLOSE( o_ldouble.real(), i_ldouble.real(), 1e-5);
BOOST_CHECK_CLOSE( o_ldouble.imag(), i_ldouble.imag(), 1e-5);
}
}