Skip to content

Commit

Permalink
Test encoding 0/0 should raise error.
Browse files Browse the repository at this point in the history
  • Loading branch information
xpol committed Feb 15, 2016
1 parent 2d12161 commit 7918f5b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions spec/json_encode_spec.lua
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@ describe('rapidjson.encode()', function()
assert.has_error(function()
rapidjson.encode(io.output())
end)

assert.has_error(function()
rapidjson.encode(0/0)
end)
end)


Expand Down

0 comments on commit 7918f5b

Please sign in to comment.