Boost logo

Boost :

From: Jody Hagins (jody-boost-011304_at_[hidden])
Date: 2005-05-25 11:05:41


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).

However, I am still confused about how to use BOOST_CHECK_CLOSE. Could
we have some clear examples of comparisons that pass/fail with different
tolerance settings, and some explanation as to how changing the
tolerance may affect the test?

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.

Thanks!


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk