draft behaviour of helper for negated machtes

This commit is contained in:
Fischlurch 2015-12-07 23:47:07 +01:00
parent 272d62d5a3
commit 00df7ff477

View file

@ -68,6 +68,7 @@ namespace test{
{
verify_simpleUsage();
verify_backwardMatch();
verify_negatedMatch();
verify_logJoining();
}
@ -108,6 +109,21 @@ namespace test{
}
void
verify_negatedMatch ()
{
EventLog log("eggs");
log.event("spam");
log.event("ham");
log.event("spam");
log.ensureNot("baked beans");
log.ensureNot("ham").before("eggs");
log.ensureNot("spam").after("spam").before("eggs");
VERIFY_ERROR (ASSERTION, log.ensureNot("spam").before("spam").after("eggs").before("ham"));
}
void
verify_logJoining ()
{