mirror of
https://github.com/neovim/neovim.git
synced 2025-09-20 02:08:17 +00:00
vim-patch:8.2.2646: Vim9: error for not using string doesn't mention argument
Problem: Vim9: error for not using string doesn't mention argument.
Solution: Add argument number.
f28f2ac425
This commit is contained in:
@@ -34,11 +34,13 @@ describe('executable()', function()
|
||||
|
||||
it('fails for invalid values', function()
|
||||
for _, input in ipairs({'v:null', 'v:true', 'v:false', '{}', '[]'}) do
|
||||
eq('Vim(call):E928: String required', exc_exec('call executable('..input..')'))
|
||||
eq('Vim(call):E1174: String required for argument 1',
|
||||
exc_exec('call executable('..input..')'))
|
||||
end
|
||||
command('let $PATH = fnamemodify("./test/functional/fixtures/bin", ":p")')
|
||||
for _, input in ipairs({'v:null', 'v:true', 'v:false'}) do
|
||||
eq('Vim(call):E928: String required', exc_exec('call executable('..input..')'))
|
||||
eq('Vim(call):E1174: String required for argument 1',
|
||||
exc_exec('call executable('..input..')'))
|
||||
end
|
||||
end)
|
||||
|
||||
|
Reference in New Issue
Block a user