6 Jun
2005
6 Jun
'05
2:21 p.m.
"Kevin Wheatley"
Hi,
I'm looking at using Boost Test as a means to carry out unit tests and wondered if there is a guard for assertions like there is for exception handling to say, "this test should assert()", fail if it does not.
If you mean an ability to intersept assert function call() - no it can't be done reliably. If could change implementation of your function callAssert() so it throw an exception (at least in test/debug mode), then you could use BOOST_CHECK_THROW. Gennadiy.