Skip to content

Commit

Permalink
add test of expressionInfo with max_width=inf
Browse files Browse the repository at this point in the history
  • Loading branch information
starius committed Jun 13, 2016
1 parent beda479 commit f4f5dd5
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 @@ -157,6 +157,12 @@ describe("compilation", function()
assert.equal(3, info.max_width)
end)

it("get information about RE (max_width is inf)", function()
local info = luahs.expressionInfo('aaa*')
assert.equal(2, info.min_width)
assert.equal(luahs.UINT_MAX, info.max_width)
end)

it("get information about RE with flags as integer",
function()
local info = luahs.expressionInfo(
Expand Down

0 comments on commit f4f5dd5

Please sign in to comment.