summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/lstrlib.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/lstrlib.js b/tests/lstrlib.js
index a7693a1..23cd786 100644
--- a/tests/lstrlib.js
+++ b/tests/lstrlib.js
@@ -438,7 +438,7 @@ test('string.dump', function (t) {
linit.luaL_openlibs(L);
- lauxlib.luaL_loadstring(L, luaCode);
+ lauxlib.luaL_loadstring(L, luaCode.trim());
}, "Lua program loaded without error");
@@ -450,6 +450,8 @@ test('string.dump', function (t) {
lapi.lua_load(L, null, dv, "test", "binary");
+ lapi.lua_call(L, 0, -1);
+
}, "Lua program ran without error");
t.strictEqual(