Update tests

253 is no longer unassigned
This commit is contained in:
Jasmijn Wellner 2020-12-26 15:00:06 +01:00
parent 54a3c9e711
commit f6e78d0c2a

View File

@ -274,7 +274,6 @@ describe("bitser", function()
assert.has_error(function() bitser.registerClass('Horse', {mane = 'majestic'}) end, "no deserializer given for unsupported class library") assert.has_error(function() bitser.registerClass('Horse', {mane = 'majestic'}) end, "no deserializer given for unsupported class library")
end) end)
it("cannot deserialize values from unassigned type bytes", function() it("cannot deserialize values from unassigned type bytes", function()
assert.has_error(function() bitser.loads("\253") end, "unsupported serialized type 253")
assert.has_error(function() bitser.loads("\254") end, "unsupported serialized type 254") assert.has_error(function() bitser.loads("\254") end, "unsupported serialized type 254")
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)