1 #include <tests/AssertPost.hxx>
2 #include <libfsafe/assert.hxx>
4 void tests::AssertPost::passIfTrue()
9 void tests::AssertPost::failIfFalse()
14 void tests::AssertPost::testMessage()
18 CPPUNIT_FAIL("false positive");
19 } catch (libfsafe::AssertionFailure
& e
) {
22 "Postcondition 'false' violated.";
23 std::string act
= e
.what();
24 CPPUNIT_ASSERT_EQUAL(exp
, act
);