tests/lua: test for multiline error messages in lua

This commit is contained in:
Björn Linse
2019-01-22 19:55:31 +01:00
parent 27b7813025
commit f7b174eb71
2 changed files with 66 additions and 0 deletions

View File

@@ -318,6 +318,10 @@ describe('API', function()
eq({false, 'Error executing lua: [string "<nvim>"]:1: '..
"attempt to call global 'bork' (a nil value)"},
meth_pcall(meths.execute_lua, 'bork()', {}))
eq({false, 'Error executing lua: [string "<nvim>"]:1: '..
"did\nthe\nfail"},
meth_pcall(meths.execute_lua, 'error("did\\nthe\\nfail")', {}))
end)
end)