summaryrefslogtreecommitdiff
path: root/tests/load.js
diff options
context:
space:
mode:
authorBenoit Giannangeli <benoit.giannangeli@boursorama.fr>2017-03-01 11:51:00 +0100
committerBenoit Giannangeli <benoit.giannangeli@boursorama.fr>2017-03-01 11:51:00 +0100
commit444182dbbb18f44cf7cafc378f092c28006be365 (patch)
treea7d539ec3698c113c6cb68697bd3ec6f39b499e0 /tests/load.js
parentae8b95ee9c3871f506b20c74367fdc9e8cb098e2 (diff)
downloadfengari-444182dbbb18f44cf7cafc378f092c28006be365.tar.gz
fengari-444182dbbb18f44cf7cafc378f092c28006be365.tar.bz2
fengari-444182dbbb18f44cf7cafc378f092c28006be365.zip
Loading tests (binary/text)
Diffstat (limited to 'tests/load.js')
-rw-r--r--tests/load.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/load.js b/tests/load.js
index 4df3f6a..a71de6b 100644
--- a/tests/load.js
+++ b/tests/load.js
@@ -25,7 +25,7 @@ test('lua_load, binary mode', function (t) {
linit.luaL_openlibs(L);
- lapi.lua_load(L, null, bc, "test-math", "binary");
+ lapi.lua_load(L, null, bc, "test-load", "binary");
lapi.lua_call(L, 0, -1);
@@ -47,17 +47,17 @@ test('lua_load, text mode', function (t) {
t.plan(2);
- // t.doesNotThrow(function () {
+ t.doesNotThrow(function () {
L = lauxlib.luaL_newstate();
linit.luaL_openlibs(L);
- lapi.lua_load(L, null, luaCode, "test-math", "text");
+ lapi.lua_load(L, null, luaCode, "test-load", "text");
lapi.lua_call(L, 0, -1);
- // }, "JS Lua program ran without error");
+ }, "JS Lua program ran without error");
t.strictEqual(
lapi.lua_tostring(L, -1),