mirror of
https://github.com/USCiLab/cereal.git
synced 2025-10-18 01:45:52 +02:00
using BOOST_CHECK_CLOSE for long double comparisons
some documentation updates to both xml and util
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user