
25 May
2005
25 May
'05
5:04 p.m.
"Jody Hagins" <jody-boost-011304@atdesk.com> wrote in message news:20050525120541.09fd4705.jody-boost-011304@atdesk.com...
I have re-read everything I can find about BOOST_CHECK_CLOSE, and the doc on floating point comparison algorithms (i.e.close_at_tolerance).
BOOST_CHECK_CLOSE( x, y, t ) checks that x and y does not differ for more then t persent. IOW: |x-y|/|x| < t and |x-y|/|y| < t
Currently, I have a test, using BOOST_CHECK_CLOSE() which passes, no matter how big/small I set the tolerance; yet the values are different.
Could you show your tests and Boost.Test output. Gennadiy