Table unit tests and implementation of table.remove(), table.sort()
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
BIN
src/test/res/table.luac
Normal file
Binary file not shown.
Reference in New Issue
Block a user