mirror of
https://github.com/gvx/bitser.git
synced 2025-01-16 03:24:19 +00:00
Add back in tests for types 251 and 252
They were previously used for cdata and ctypes
This commit is contained in:
parent
4ca78ad394
commit
8bfdf3a961
@ -270,6 +270,8 @@ describe("bitser", function()
|
||||
assert.has_error(function() bitser.registerClass('Horse', {mane = 'majestic'}) end, "no deserializer given for unsupported class library")
|
||||
end)
|
||||
it("cannot deserialize values from unassigned type bytes", function()
|
||||
assert.has_error(function() bitser.loads("\251") end, "unsupported serialized type 251")
|
||||
assert.has_error(function() bitser.loads("\252") end, "unsupported serialized type 252")
|
||||
assert.has_error(function() bitser.loads("\255") end, "unsupported serialized type 255")
|
||||
end)
|
||||
it("can load from raw data", function()
|
||||
|
Loading…
Reference in New Issue
Block a user