Skip to content

Commit

Permalink
add test: expressionInfo throws on bad pattern
Browse files Browse the repository at this point in the history
  • Loading branch information
starius committed May 29, 2016
1 parent 07d9a54 commit 180aa54
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions spec/compile_spec.lua
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,12 @@ describe("compilation", function()
end)
end)

it("expressionInfo throws on bad pattern", function()
assert.has_error(function()
luahs.expressionInfo('[')
end)
end)

it("throws on bad arguments", function()
assert.has_error(function()
luahs.compile()
Expand Down

0 comments on commit 180aa54

Please sign in to comment.