Boost logo

Boost Users :

Subject: Re: [Boost-users] [test] upgrading from 1.58 to 1.59
From: Mathieu Champlon (m.champlon_at_[hidden])
Date: 2015-09-05 15:39:40


On 05/09/2015 16:44, Mathieu Champlon wrote:
> Hello,
>
> Prior to boost 1.59 I had code using the floating point comparisons of
> Boost.Test as in
>
> if( boost::test_tools::check_is_close( v1, v2,
> boost::test_tools::percent_tolerance( tolerance ) ) )
> ...
>
> if( boost::test_tools::check_is_close( v1, v2,
> boost::test_tools::fraction_tolerance( tolerance ) ) )
> ...
>
> As these seem to have been replaced/generalized starting with boost
> 1.59 I need to upgrade my code.

It looks like I can still use boost::test_tools::check_is_close like
this respectively :

     if( boost::test_tools::check_is_close( v1, v2, tolerance / 100 ) )
         ...

     if( boost::test_tools::check_is_close( v1, v2, tolerance ) )
         ...

Am I right ?

Thanks !
MAT.


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net