Skip to content

Commit 403cec1

Browse files
committed
Constants overflow test case
1 parent 7a27faf commit 403cec1

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

tests/test_ldump.lua

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -319,4 +319,14 @@ describe("Corner cases:", function()
319319
assert.are_same(env, copy_env)
320320
assert.are_equal(value, copy_value)
321321
end)
322+
323+
it("constants overflow", function()
324+
local t = {}
325+
for i = 1, 100000 do
326+
t[i] = 1000000 + i
327+
end
328+
329+
local t1 = pass(t)
330+
assert.are_same(t, t1)
331+
end)
322332
end)

0 commit comments

Comments
 (0)