
"Paul A Bristow" <pbristow@hetp.u-net.com> wrote in message news:E1HKX3w-0006w7-Sj@he304war.uk.vianw.net...
-----Original Message----- From: boost-bounces@lists.boost.org [mailto:boost-bounces@lists.boost.org] On Behalf Of Gennadiy Rozental Sent: 23 February 2007 02:11 To: boost@lists.boost.org Subject: Re: [boost] Boost Test Library: general floating point comparisons
There is another alternatve:
BOOST_CHECK_DIFF( a,b, PERCENT( t ) ) BOOST_CHECK_DIFF( a,b, RELATIVE( t ) ) BOOST_CHECK_DIFF( a,b, EPSILON( t ) ) BOOST_CHECK_DIFF( a,b, ABSOLUTE( t ) )
This seems unambiguous and reads well (though I would prefer DIFFERENCE spelt out in full - nearly everyone is going to use copy'n'paste fir this job rather than typing, so it isn't more trouble and reads better, especially for those whose 1st language isn't english ;-)
I guess it's ok. Gennadiy