8 Aug
2014
8 Aug
'14
1:53 p.m.
Beman Dawes wrote:
Certain library function errors are difficult to regression test because it is not obvious how to observe their behavior in a test framework. Examples include:
...
2) Verification that BOOST_ASSERT fires when a precondition is violated.
You can do this by enabling a custom assert handler and then test that it has been invoked.