forgot to require ffi

This commit is contained in:
Robin Wellner 2016-02-16 02:11:09 +01:00
parent c624623efe
commit 5eec3575ab

View File

@ -188,6 +188,7 @@ describe("bitser", function()
assert.has_error(function() bitser.loads("\255") end, "unsupported serialized type 255")
end)
it("can load from raw data", function()
local ffi = require 'ffi'
assert.are.same(bitser.loadData(ffi.new("uint8[4]", 195, 103, 118, 120)), "gvx")
end)
end)