From 05d3720874c9a26f936db167e083b4ac07d6c6f7 Mon Sep 17 00:00:00 2001 From: Benoit Giannangeli Date: Sat, 27 May 2017 10:04:37 +0200 Subject: io.read is NYI --- tests/test-suite/inprogress/api.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/test-suite') diff --git a/tests/test-suite/inprogress/api.js b/tests/test-suite/inprogress/api.js index 72db2c2..c237a9c 100644 --- a/tests/test-suite/inprogress/api.js +++ b/tests/test-suite/inprogress/api.js @@ -723,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) -- cgit v1.2.3-70-g09d2