Subject: Re: [Boost-users] [Boost.Test] Understanding the correct use of BOOST_CHECK_CLOSE and BOOST_CHECK_CLOSE_FRACTION
From: Gennadiy Rozental (rogeeff_at_[hidden])
Date: 2010-09-09 20:33:51


Torri, Stephen CIV NSWCDD, W15 <stephen.torri <at> navy.mil> writes:

> BOOST_CHECK_LE ( fabs ( a - b ), tolerance );

Use BOOST_CHECK_SMALL( a-b, tolerance ).

That said I really recommend you to use assertions based on relative errors,
since they give more reliable results.

Gennadiy