|
Boost : |
Subject: Re: [boost] [test] BOOST_TEST - universal testing tool
From: Rhys Ulerich (rhys.ulerich_at_[hidden])
Date: 2012-11-06 09:50:57
> 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?
- Rhys
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk