aboutsummaryrefslogtreecommitdiff
path: root/tests/test-suite
diff options
context:
space:
mode:
authorBenoit Giannangeli <giann008@gmail.com>2017-05-27 10:04:37 +0200
committerBenoit Giannangeli <giann008@gmail.com>2017-05-27 10:04:37 +0200
commit05d3720874c9a26f936db167e083b4ac07d6c6f7 (patch)
tree013c0f18a838d92a5017f1c518ac25ea98829ee5 /tests/test-suite
parente3f76f864ecb0039c3c3c4ae33ffac21b64b704e (diff)
downloadfengari-05d3720874c9a26f936db167e083b4ac07d6c6f7.tar.gz
fengari-05d3720874c9a26f936db167e083b4ac07d6c6f7.tar.bz2
fengari-05d3720874c9a26f936db167e083b4ac07d6c6f7.zip
io.read is NYI
Diffstat (limited to 'tests/test-suite')
-rw-r--r--tests/test-suite/inprogress/api.js4
1 files changed, 2 insertions, 2 deletions
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)