Skip to content

Commit 48ad495

Browse files
committed
Minor tweaks.
1 parent 480da16 commit 48ad495

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

include/cppbdd/gtestbdd.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ namespace gtestbdd
7171
}
7272
else
7373
{
74-
printError("missing WHEN clause");
74+
printError("WHEN clause missing");
7575
assert(false);
7676
}
7777
}

include/cppbdd/qtestbdd.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,11 @@ namespace qtestbdd
1717

1818
virtual ~Scenario()
1919
{
20+
if (!mGiven && !mWhen && !mThen)
21+
{
22+
return;
23+
}
24+
2025
if(!mGiven)
2126
{
2227
QFAIL("GIVEN clause missing.");

0 commit comments

Comments
 (0)