summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/file.binbin0 -> 15 bytes
-rw-r--r--tests/test2.lua4
2 files changed, 3 insertions, 1 deletions
diff --git a/tests/file.bin b/tests/file.bin
new file mode 100644
index 0000000..80f1ea8
--- /dev/null
+++ b/tests/file.bin
Binary files differ
diff --git a/tests/test2.lua b/tests/test2.lua
index f1cd073..20497bc 100644
--- a/tests/test2.lua
+++ b/tests/test2.lua
@@ -10,8 +10,10 @@ function test2()
collectgarbage()
- i = Input.new "tests/test1.lua"
+ i = Input.new "tests/file.bin"
i:open()
print(i:readU8())
+ print(i:readU16())
+ print(i:readU32())
i:destroy()
end