Add back in tests for types 251 and 252

They were previously used for cdata and ctypes
This commit is contained in:
Jasmijn Wellner 2024-12-29 17:20:51 +01:00
parent 4ca78ad394
commit 8bfdf3a961

View File

@ -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()