summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorNicolas Noble <pixel@nobis-crew.org>2013-08-07 16:33:02 -0700
committerNicolas Noble <pixel@nobis-crew.org>2013-08-07 16:33:02 -0700
commit971f8398516720d8edbdc03db3278b18db20304b (patch)
tree2673ed99b5d82017174f4b5e8a776d7859dfc60d /tests
parent3deb696808760b6358807a4a9f936d79276b65f3 (diff)
Updating Balau and adding tests for readU16 and readU32.
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