api/vim,functests: Add tests for nvim_parse_expression, fix found bugs

This commit is contained in:
ZyX
2017-11-05 02:41:44 +03:00
parent 07ec709141
commit 7bc6de7526
7 changed files with 6908 additions and 27 deletions

View File

@@ -52,11 +52,6 @@ local function new_pstate(strings)
return ret
end
local function intchar2lua(ch)
ch = tonumber(ch)
return (20 <= ch and ch < 127) and ('%c'):format(ch) or ch
end
local function pline2lua(pline)
return ffi.string(pline.data, pline.size)
end