eval: Alter E5050 error message, test that

This commit is contained in:
ZyX
2017-04-08 21:30:47 +03:00
parent 475cd8f075
commit 5e6f7e1d55
2 changed files with 9 additions and 2 deletions

View File

@@ -175,6 +175,10 @@ describe('input()', function()
exc_exec('call input({"default": []})'))
eq('Vim(call):E730: using List as a String',
exc_exec('call input({"completion": []})'))
eq('Vim(call):E5050: {opts} must be the only argument',
exc_exec('call input({}, "default")'))
eq('Vim(call):E118: Too many arguments for function: input',
exc_exec('call input("prompt> ", "default", "file", "extra")'))
end)
end)
describe('inputdialog()', function()
@@ -322,5 +326,9 @@ describe('inputdialog()', function()
exc_exec('call inputdialog({"default": []})'))
eq('Vim(call):E730: using List as a String',
exc_exec('call inputdialog({"completion": []})'))
eq('Vim(call):E5050: {opts} must be the only argument',
exc_exec('call inputdialog({}, "default")'))
eq('Vim(call):E118: Too many arguments for function: inputdialog',
exc_exec('call inputdialog("prompt> ", "default", "file", "extra")'))
end)
end)