Boost logo

Boost Users :

From: Mike (mkellycsc_at_[hidden])
Date: 2005-08-24 10:53:47


Is there a way inside a test case using the Unit Testing Framework to
specify that a particular function call ought to fail? For example, I have a
function that asserts when passed invalid input. In my test case I want to
pass it an invalid parameter and check that the assert is triggered. I'm
looking for a macro called BOOST_CHECK_FAILURE (or something like that), but
cannot find one. All I see are macros that assert successes, and those that
assert exceptions. But my particular function does not throw, it simply

Any ideas?

Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at