renamed DebugStackState to DebugLuaState

This commit is contained in:
Shu Lei
2007-11-08 01:59:42 +00:00
parent 25c008dab6
commit af51bf6f07
6 changed files with 14 additions and 14 deletions

View File

@@ -24,7 +24,7 @@ package org.luaj.debug;
import java.io.IOException;
import java.io.InputStream;
import org.luaj.debug.DebugStackState;
import org.luaj.debug.DebugLuaState;
import org.luaj.vm.LClosure;
import org.luaj.vm.LValue;
import org.luaj.vm.LoadState;
@@ -38,7 +38,7 @@ public class DebugStackStateTest extends TestCase {
String script = "/test6.luac";
// set up the vm
final DebugStackState state = new DebugStackState();
final DebugLuaState state = new DebugLuaState();
InputStream is = getClass().getResourceAsStream( script );
LPrototype p = LoadState.undump(state, is, script);

View File

@@ -6,7 +6,7 @@ import java.io.OutputStream;
import junit.framework.TestCase;
import org.luaj.debug.DebugStackState;
import org.luaj.debug.DebugLuaState;
import org.luaj.lib.MathLib;
import org.luaj.lib.j2se.LuajavaLib;
@@ -112,7 +112,7 @@ public class LuaJTest extends TestCase {
private void runTest( String testName ) throws IOException, InterruptedException {
// new lua state
LuaState state = new DebugStackState();
LuaState state = new DebugLuaState();
// add LuaJava bindings
LuajavaLib.install(state._G);

View File

@@ -13,7 +13,7 @@ import junit.framework.Test;
import junit.framework.TestCase;
import junit.framework.TestSuite;
import org.luaj.debug.DebugStackState;
import org.luaj.debug.DebugLuaState;
import org.luaj.lib.MathLib;
public class StandardTest extends TestCase {
@@ -65,7 +65,7 @@ public class StandardTest extends TestCase {
}
public void runTest() {
LuaState state = new DebugStackState();
LuaState state = new DebugLuaState();
MathLib.install(state._G);
// hack: it's unpleasant when the test cases fail to terminate;
// unfortunately, there is a test in the standard suite that