diff options
Diffstat (limited to 'tests/test-suite/inprogress')
-rw-r--r-- | tests/test-suite/inprogress/api.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/test-suite/inprogress/api.js b/tests/test-suite/inprogress/api.js index 06a1648..c237a9c 100644 --- a/tests/test-suite/inprogress/api.js +++ b/tests/test-suite/inprogress/api.js @@ -88,6 +88,7 @@ test("[test-suite] api: absindex", function (t) { test("[test-suite] api: testing alignment", function (t) { let luaCode = ` + -- Useless tests in fengari since we do the same thing in d2s than in string.pack a = T.d2s(12458954321123.0) assert(a == string.pack("d", 12458954321123.0)) assert(T.s2d(a) == 12458954321123.0) @@ -722,13 +723,13 @@ test("[test-suite] api: testing lua_to...", function (t) { assert(to("topointer", 10) == 0) assert(to("topointer", true) == 0) assert(to("topointer", T.pushuserdata(20)) == 20) - assert(to("topointer", io.read) ~= 0) -- light C function + --assert(to("topointer", io.read) ~= 0) -- light C function assert(to("topointer", hfunc) ~= 0) -- "heavy" C function assert(to("topointer", function () end) ~= 0) -- Lua function assert(to("topointer", io.stdin) ~= 0) -- full userdata assert(to("func2num", 20) == 0) assert(to("func2num", T.pushuserdata(10)) == 0) - assert(to("func2num", io.read) ~= 0) -- light C function + -- assert(to("func2num", io.read) ~= 0) -- light C function assert(to("func2num", hfunc) ~= 0) -- "heavy" C function (with upvalue) a = to("tocfunction", math.deg) assert(a(3) == math.deg(3) and a == math.deg) |