test icon indicating copy to clipboard operation
test copied to clipboard

Include negated assertion_result messages:

Open krwalker opened this issue 2 years ago • 0 comments

Given a helper function isEqualCaseInsensitive() returning helpful detail in the assertion_result message, negation in a BOOST_CHECK() results in that detail being discarded.

This feature preserves that detail in the negated case.

For example:

BOOST_CHECK(isEqualCaseInsensitive('z', 'Z')) included detail like [z isEqualCaseInsensitiveTo Z]

BOOST_CHECK(!isEqualCaseInsensitive('z', 'Z')) discarded that detail until this revision, which now includes it: NOT([z isEqualCaseInsensitiveTo Z])

krwalker avatar Sep 06 '23 20:09 krwalker