summaryrefslogtreecommitdiff
path: root/tests/test2.lua
blob: f1cd07387794e520431b484cbfb474c1d276ddcf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
function test2()
    local i = Input.new "tests/test1.lua"
    i:open()
    i:close()
    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