Boost logo

Boost Users :

Subject: Re: [Boost-users] [Test] Reviving BOOST_*_CLOSE_COLLECTIONS request
From: Chris Cleeland (chris.cleeland_at_[hidden])
Date: 2014-12-11 18:37:38


What else is in "Devel Boost.Test"? And how can I acces?

On Thu, Dec 11, 2014 at 4:21 PM, Gennadiy Rozental <rogeeff_at_[hidden]>
wrote:

> Ghyslain Leclerc <ghleclerc <at> gmail.com> writes:
>
> >
> >
> >
> > Hello,
> >
> > We are in the process of creating unit tests for our in-house application
> > development and have selected Boot.Test as a library. I’ve been toying
> > with the library for a while now and there is one feature that I feel is
> > missing. It is the capacity to check a whole collection for close
> values,
> > i.e. the “close” equivalent of BOOST_*_EQUAL_COLLECTIONS.
>
> Devel Boost.Test can do much better:
>
> BOOST_AUTO_TEST_CASE(foo)
> {
> vector<float> a, b;
>
> BOOST_TEST( a == b, tolerance(1e-5) );
> BOOST_TEST( a <= b, percent_tolerance = 1e-5 );
> }
>
> BOOST_TEST_DECORATOR(
> -tolerance = 1e-7
> )
> BOOST_AUTO_TEST_CASE(goo)
> {
> vector<float> a, b;
> BOOST_TEST( a > b );
> BOOST_TEST( a != b );
> }
>
> e.t.c.
>
> Gennadiy
>
>
>
> _______________________________________________
> Boost-users mailing list
> Boost-users_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users

-- 
Chris Cleeland


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