summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorNicolas "Pixel" Noble <pixel@nobis-crew.org>2013-08-07 23:22:56 +0200
committerNicolas "Pixel" Noble <pixel@nobis-crew.org>2013-08-07 23:22:56 +0200
commit1757992dbb4e12412ed6310680df20f3c2a4dd62 (patch)
treea88bdcbb80a73bcdf506dd8fb38ed54e889269cd /tests
parentf8688ca9cfa91e182d881f9bb25458945fc35194 (diff)
Updating test for handles a bit.
Diffstat (limited to 'tests')
-rw-r--r--tests/test2.lua6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/test2.lua b/tests/test2.lua
index 807e861..f1cd073 100644
--- a/tests/test2.lua
+++ b/tests/test2.lua
@@ -5,7 +5,13 @@ function test2()
i:destroy()
i = Input.new "tests/test1.lua"
+ i:open()
i = nil
collectgarbage()
+
+ i = Input.new "tests/test1.lua"
+ i:open()
+ print(i:readU8())
+ i:destroy()
end