summaryrefslogtreecommitdiff
path: root/tests/lapi.js
diff options
context:
space:
mode:
authorBenoit Giannangeli <benoit.giannangeli@boursorama.fr>2017-02-17 16:04:42 +0100
committerBenoit Giannangeli <giann008@gmail.com>2017-02-17 21:28:40 +0100
commit06ec7904c37b897b2e87f4321198926ff22da1d9 (patch)
tree216d4a0e2fd2b0c984401caf91067b224a25cc28 /tests/lapi.js
parent5131a5ab1f471655d6398748b1eaa9abd47c14da (diff)
downloadfengari-06ec7904c37b897b2e87f4321198926ff22da1d9.tar.gz
fengari-06ec7904c37b897b2e87f4321198926ff22da1d9.tar.bz2
fengari-06ec7904c37b897b2e87f4321198926ff22da1d9.zip
Basis to load std lib
Diffstat (limited to 'tests/lapi.js')
-rw-r--r--tests/lapi.js14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/lapi.js b/tests/lapi.js
index 8a1db31..2f5f459 100644
--- a/tests/lapi.js
+++ b/tests/lapi.js
@@ -561,4 +561,18 @@ test('lua_settable, lua_gettable', function (t) {
"value",
"Correct element(s) on the stack"
);
+});
+
+
+test('print', function (t) {
+ let luaCode = `
+ print("hello world");
+ `, L;
+
+ t.plan(1);
+
+ t.doesNotThrow(function () {
+ L = getState(luaCode);
+ lapi.lua_call(L, 0, -1);
+ }, "Program executed without errors");
}); \ No newline at end of file