diff options
author | starkos <none@none> | 2009-07-14 18:28:26 +0400 |
---|---|---|
committer | starkos <none@none> | 2009-07-14 18:28:26 +0400 |
commit | b31241242bf039c2ff1c50bba99cf749eb293d3b (patch) | |
tree | bd69c4c94cb23945393aba0e8ce3bb3a4f9d4bc2 /tests/testfx.lua | |
parent | 020bb4726bfff0572d66d3135e9601a61a8df198 (diff) |
Started tests for clean action
Diffstat (limited to 'tests/testfx.lua')
-rw-r--r-- | tests/testfx.lua | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/tests/testfx.lua b/tests/testfx.lua index a135d52..ea04721 100644 --- a/tests/testfx.lua +++ b/tests/testfx.lua @@ -38,7 +38,14 @@ end end + + function test.contains(value, expected) + if not table.contains(value, expected) then + test.fail("expected value %s not found", expected) + end + end + function test.fail(format, ...) -- convert nils into something more usefuls for i = 1, arg.n do @@ -96,7 +103,7 @@ test.fail("expected true but was false") end end - + -- -- Define a collection for the test suites |