
[Please do not mail me a copy of your followup]
boost-users@lists.boost.org spake the secret code
Imagine this:
BOOST_CHECK_EQUAL(cont.erase(key),1u);
First, I recommend use of BOOST_REQUIRES_xxx instead of BOOST_CHECK_xxx.
If it fails, it tells me this:
basics.cpp(61): error in "test_case": check cont.erase(key) == 1u failed [0 != 1]
If you use BOOST_CHECK_MESSAGE(predicate, message), you can create a
custom failure message that contains additional context:
#define BOOST_TEST_MODULE example
#include