From: Gennadiy Rozental (gennadiy.rozental_at_[hidden])
Date: 2005-01-20 09:44:22


> I have a test where it doesn't make any sense to continue if a certain
> function does not throw. BOOST_CHECK_THROW works but IMHO expresses the
> wrong thing.

Well, I am not quite sure what you ask, but here what I could answer:

BOOST_REQUIRE_THROW doesn't exist
BOOST_CHECK_THROW check that argument expression throw an exception
BOOST_REQUIRE checks that argument condition is true and stop further
testing in current test case if it failes

Gennadiy