|
Boost : |
From: John Torjo (john_at_[hidden])
Date: 2003-05-25 03:00:25
> >>>Following on from that, there seems some overlap between your proposed
> >>>asserts and Boost.Test's BOOST_CHECK_() macros. I wonder if it would be
> >>>possible to have an assert handler for use in the unit test framework,
> >>> and
> >>>then I can use SMART_ASSERT() in both main code and in test code and
> >>> only have to learn one syntax.
> >
> > Indeed you can! Take a look at the things I've developed so far.
>
> I didn't see anything specifically for this (i.e. something that updates
the
> number of failed/passed tests, and doesn't prompt the user).
>
Basically, it's possible to create your own assert handler.
I did not have time to look over the test framework, but with some help from
you, when the library is ready, I can provide such a (handler) function.
What do you think?
Best,
John
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk