Fix return value for table.remove() and table.insert()

This commit is contained in:
James Roseborough
2015-03-15 05:45:50 +00:00
parent 4c3bb1d709
commit 06a9ddbb88
3 changed files with 32 additions and 21 deletions

View File

@@ -594,5 +594,11 @@ public class FragmentsTest extends TestSuite {
public void testBalancedMatchOnEmptyString() {
runFragment(LuaValue.NIL, "return (\"\"):match(\"%b''\")\n");
}
public void testReturnValueForTableRemove() {
runFragment(LuaValue.NONE, "return table.remove({ })");
}
public void testTypeOfTableRemoveReturnValue() {
runFragment(LuaValue.valueOf("nil"), "local k = table.remove({ }) return type(k)");
}
}
}