
30 Oct
2007
30 Oct
'07
10:22 a.m.
On Tue, Oct 30, 2007 at 10:03:41AM -0000, John Maddock wrote:
Is there a way to check if the last BOOST_CHECK_CLOSE passed or failed?
I need to print out some additional information if it failed so I can track down which test case it was (the checks are in a loop that iterates over a table of data).
In this case you should probably change the test. To be honest I have the same problem that I need something similar to BOOST_CHECK_EQUAL_COLLECTIONS which checks a range and creates compressed output. I tried using custom predicate support (http://www.boost.org/libs/test/doc/components/test_tools/custom_predicate_su...) but it is complicated ... Using BOOST_CHECK_CLOSE in a loop sounds just wrong to me. Jens