Table unit tests and implementation of table.remove(), table.sort()

This commit is contained in:
James Roseborough
2007-10-31 23:24:51 +00:00
parent facb8d1d07
commit 434530b60f
7 changed files with 137 additions and 32 deletions

View File

@@ -30,7 +30,7 @@ public class LuacRunner {
LuaJava.install();
// new lua state
StackState state = new DebugStackState();
StackState state = new StackState();
VM vm = state;
// load the file

View File

@@ -96,6 +96,10 @@ public class LuaJTest extends TestCase {
runTest( "strlib" );
}
public void testTable() throws IOException, InterruptedException {
runTest( "table" );
}
public void testType() throws IOException, InterruptedException {
runTest( "type" );
}
@@ -120,7 +124,7 @@ public class LuaJTest extends TestCase {
LuaCompat.install();
// new lua state
StackState state = new DebugStackState();
StackState state = new StackState();
// load the file
Proto p = loadScriptResource( state, testName );

BIN
src/test/res/table.luac Normal file

Binary file not shown.