Boost logo

Boost :

Subject: Re: [boost] [test] BOOST_TEST - universal testing tool
From: Gennadiy Rozenal (rogeeff_at_[hidden])
Date: 2012-11-06 10:30:44


Rhys Ulerich <rhys.ulerich <at> gmail.com> writes:

>
> > What about interface like this:
> >
> > BOOST_TEST_DECORATORS(
> > + decorator::tolerance(1e-6)
> > )
> > BOOST_AUTO_TEST_CASE( foo )
> > {
> > BOOST_TEST( foo == 1.5 );
> > }
>
> This just feels like a fixture-- any reason a regular ol' per-suite or
> per-test fixture providing a "default_tolerance" member wouldn't
> suffice?

It is (and it can be implemented like one), but if this is common need why not
make cleaner interface for it?

Gennadiy


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