summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorBenoit Giannangeli <benoit.giannangeli@boursorama.fr>2017-03-17 10:34:43 +0100
committerBenoit Giannangeli <giann@users.noreply.github.com>2017-03-17 10:36:57 +0100
commit0d8de3dad35216726d6f2e0b5fe333b2b7aa6d10 (patch)
tree2628ccf96713956ebf304b6443f7d39d3fa29034 /tests
parent18631188532881934261e72321d9839ad42d1b06 (diff)
downloadfengari-0d8de3dad35216726d6f2e0b5fe333b2b7aa6d10.tar.gz
fengari-0d8de3dad35216726d6f2e0b5fe333b2b7aa6d10.tar.bz2
fengari-0d8de3dad35216726d6f2e0b5fe333b2b7aa6d10.zip
Fixed bad string length undump
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(