Skip to content

Commit

Permalink
Minor tweaks.
Browse files Browse the repository at this point in the history
  • Loading branch information
mv185095 committed Sep 6, 2017
1 parent 480da16 commit 48ad495
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion include/cppbdd/gtestbdd.h
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ namespace gtestbdd
}
else
{
printError("missing WHEN clause");
printError("WHEN clause missing");
assert(false);
}
}
Expand Down
5 changes: 5 additions & 0 deletions include/cppbdd/qtestbdd.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@ namespace qtestbdd

virtual ~Scenario()
{
if (!mGiven && !mWhen && !mThen)
{
return;
}

if(!mGiven)
{
QFAIL("GIVEN clause missing.");
Expand Down

0 comments on commit 48ad495

Please sign in to comment.