aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/lexparse.js7
-rw-r--r--tests/lvm.js2
2 files changed, 5 insertions, 4 deletions
diff --git a/tests/lexparse.js b/tests/lexparse.js
index 8320588..0d9c51d 100644
--- a/tests/lexparse.js
+++ b/tests/lexparse.js
@@ -11,9 +11,10 @@ const lauxlib = require("../src/lauxlib.js");
const linit = require('../src/linit.js');
-test('Hello World', function (t) {
+test('LOADK, RETURN', function (t) {
let luaCode = `
- return "hello world"
+ local a = "hello world"
+ return a
`, L;
t.plan(2);
@@ -24,7 +25,7 @@ test('Hello World', function (t) {
linit.luaL_openlibs(L);
- lapi.lua_load(L, null, luaCode, "test-load", "text");
+ lapi.lua_load(L, null, luaCode, "test", "text");
lapi.lua_call(L, 0, -1);
diff --git a/tests/lvm.js b/tests/lvm.js
index 5d4eae1..5b5deac 100644
--- a/tests/lvm.js
+++ b/tests/lvm.js
@@ -6,7 +6,7 @@ const beautify = require('js-beautify').js_beautify;
const lua_State = require("../src/lstate.js").lua_State;
const VM = require("../src/lvm.js");
const lapi = require("../src/lapi.js");
-const Table = require("../src/lobject.js").Table;;
+const Table = require("../src/lobject.js").Table;
const getState = require("./tests.js").getState;