executor,functests: Add print() tests, some fixes

This commit is contained in:
ZyX
2017-01-29 23:22:50 +03:00
parent ebad046220
commit 9fd2bf67aa
4 changed files with 101 additions and 11 deletions

View File

@ -241,6 +241,8 @@ describe('luaeval()', function()
exc_exec([[call luaeval("vim.xxx_nonexistent_key_xxx()")]]))
eq('Vim(call):E5108: Error while calling lua chunk for luaeval(): [string "<VimL compiled string>"]:1: ERROR',
exc_exec([[call luaeval("error('ERROR')")]]))
eq('Vim(call):E5108: Error while calling lua chunk for luaeval(): [NULL]',
exc_exec([[call luaeval("error(nil)")]]))
end)
it('does not leak memory when called with too long line',