diff options
Diffstat (limited to 'tests/lexparse.js')
-rw-r--r-- | tests/lexparse.js | 7 |
1 files changed, 4 insertions, 3 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); |