summaryrefslogtreecommitdiff
path: root/tests/test2.lua
blob: 20497bc12f90da7d030a44aad496cd6dbad4eb07 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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/file.bin"
    i:open()
    print(i:readU8())
    print(i:readU16())
    print(i:readU32())
    i:destroy()
end