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

@@ -394,6 +394,11 @@ local function format_string(fmt, ...)
return ret
end
local function intchar2lua(ch)
ch = tonumber(ch)
return (20 <= ch and ch < 127) and ('%c'):format(ch) or ch
end
return {
eq = eq,
neq = neq,
@@ -412,4 +417,5 @@ return {
dedent = dedent,
format_luav = format_luav,
format_string = format_string,
intchar2lua = intchar2lua,
}