
6 Nov
2012
6 Nov
'12
3:30 p.m.
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