Commit 395ae3dd authored by François Perrad's avatar François Perrad
Browse files

add test, see PR #26

parent 93b33bbd
......@@ -2,7 +2,7 @@
require 'Test.More'
plan(22)
plan(23)
local mp = require 'MessagePack'
......@@ -56,6 +56,11 @@ error_like( function ()
end,
"extra bytes" )
error_like( function ()
mp.unpack(mp.pack("text") .. "1")
end,
"extra bytes" )
error_like( function ()
mp.unpack( {} )
end,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment