summaryrefslogtreecommitdiff
path: root/tests/test2.lua
blob: da7497aff0fbd10eae1c4d363d50d699b518885d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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())
    print(i:readU64())
    i:destroy()
end