diff options
Diffstat (limited to 'tests/testfx.lua')
-rw-r--r-- | tests/testfx.lua | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/testfx.lua b/tests/testfx.lua index d3cd44a..1182a13 100644 --- a/tests/testfx.lua +++ b/tests/testfx.lua @@ -86,6 +86,14 @@ end end + + function test.isemptycapture() + local actual = io.endcapture() + if actual ~= "" then + test.fail("expected empty capture, but was %s", actual); + end + end + function test.isequal(expected, actual) if (type(expected) == "table") then |