mirror of
https://github.com/gvx/bitser.git
synced 2024-11-24 06:54:20 +00:00
forgot to require ffi
This commit is contained in:
parent
c624623efe
commit
5eec3575ab
@ -188,6 +188,7 @@ describe("bitser", function()
|
|||||||
assert.has_error(function() bitser.loads("\255") end, "unsupported serialized type 255")
|
assert.has_error(function() bitser.loads("\255") end, "unsupported serialized type 255")
|
||||||
end)
|
end)
|
||||||
it("can load from raw data", function()
|
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")
|
assert.are.same(bitser.loadData(ffi.new("uint8[4]", 195, 103, 118, 120)), "gvx")
|
||||||
end)
|
end)
|
||||||
end)
|
end)
|
||||||
|
Loading…
Reference in New Issue
Block a user