Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/windirstat/premake-4.x-stable.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorstarkos <none@none>2009-07-14 18:28:26 +0400
committerstarkos <none@none>2009-07-14 18:28:26 +0400
commitb31241242bf039c2ff1c50bba99cf749eb293d3b (patch)
treebd69c4c94cb23945393aba0e8ce3bb3a4f9d4bc2 /tests/testfx.lua
parent020bb4726bfff0572d66d3135e9601a61a8df198 (diff)
Started tests for clean action
Diffstat (limited to 'tests/testfx.lua')
-rw-r--r--tests/testfx.lua9
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