summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/alltests.lua2
-rw-r--r--tests/test2.lua6
2 files changed, 8 insertions, 0 deletions
diff --git a/tests/alltests.lua b/tests/alltests.lua
index d0feda2..d4088e6 100644
--- a/tests/alltests.lua
+++ b/tests/alltests.lua
@@ -1,5 +1,7 @@
load "tests/test1.lua"
+load "tests/test2.lua"
function runtests()
test1()
+ test2()
end
diff --git a/tests/test2.lua b/tests/test2.lua
new file mode 100644
index 0000000..d023ba5
--- /dev/null
+++ b/tests/test2.lua
@@ -0,0 +1,6 @@
+function test2()
+ local i = Input.new "tests/test1.lua"
+ i:open()
+ i:close()
+ i:destroy()
+end