From b62bcdfa67d6b0359bf45930ab392953d69eb399 Mon Sep 17 00:00:00 2001 From: Benoit Giannangeli Date: Sat, 18 Feb 2017 16:07:47 +0100 Subject: setmetatable, getmetatable --- tests/lapi.js | 23 ----------------------- 1 file changed, 23 deletions(-) (limited to 'tests/lapi.js') diff --git a/tests/lapi.js b/tests/lapi.js index 561b774..30366d5 100644 --- a/tests/lapi.js +++ b/tests/lapi.js @@ -490,27 +490,4 @@ test('lua_settable, lua_gettable', function (t) { "value", "Correct element(s) on the stack" ); -}); - - -test('print', function (t) { - let luaCode = ` - print("hello", "world", 123) - `, L; - - t.plan(1); - - t.doesNotThrow(function () { - - let bc = toByteCode(luaCode).dataView; - - L = lauxlib.luaL_newstate(); - - linit.luaL_openlibs(L); - - lapi.lua_load(L, bc, "test-lua_load") - - lapi.lua_call(L, 0, 1); - - }, "JS Lua program ran without error"); }); \ No newline at end of file -- cgit v1.2.3-54-g00ecf