rzel / kahlua

Automatically exported from code.google.com/p/kahlua
0 stars 0 forks source link

table.insert doesn't work #5

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
Run this code in kahlua:
local t = {}
table.insert(t,1)

for k,v in pairs(t) do print(k,v) end
assert(t[1] == 1)

What is the expected output? What do you see instead?
1 1 should be printed, and the assertion should pass.  instead the table is
empty and the assertion fails.

Original issue reported on code.google.com by KevinRLu...@gmail.com on 2 Dec 2008 at 6:32

GoogleCodeExporter commented 8 years ago
Verified and fixed. New test cases are checked in to make sure it doesn't 
happen again.

Original comment by kristofer.karlsson@gmail.com on 2 Dec 2008 at 3:09