aboutsummaryrefslogtreecommitdiff
path: root/test/functional/vimscript/exepath_spec.lua
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2022-09-12 14:03:32 +0800
committerzeertzjq <zeertzjq@outlook.com>2022-09-12 14:56:42 +0800
commit38059b4f31d8c9374002e209bc9ee2df28ac17fa (patch)
tree20ad18d7b52726213d1f00c35bc3925da64b318b /test/functional/vimscript/exepath_spec.lua
parentf98cff9575e75a050d2bde01ad950c0c72bcfc3e (diff)
downloadrneovim-38059b4f31d8c9374002e209bc9ee2df28ac17fa.tar.gz
rneovim-38059b4f31d8c9374002e209bc9ee2df28ac17fa.tar.bz2
rneovim-38059b4f31d8c9374002e209bc9ee2df28ac17fa.zip
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. https://github.com/vim/vim/commit/f28f2ac425600b88da0bdcc12a82cd620f575681
Diffstat (limited to 'test/functional/vimscript/exepath_spec.lua')
-rw-r--r--test/functional/vimscript/exepath_spec.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/functional/vimscript/exepath_spec.lua b/test/functional/vimscript/exepath_spec.lua
index bbca954511..439dd96fcd 100644
--- a/test/functional/vimscript/exepath_spec.lua
+++ b/test/functional/vimscript/exepath_spec.lua
@@ -21,12 +21,12 @@ describe('exepath()', 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 exepath('..input..')'))
+ eq('Vim(call):E1174: String required for argument 1', exc_exec('call exepath('..input..')'))
end
- eq('Vim(call):E1142: Non-empty string required', exc_exec('call exepath("")'))
+ eq('Vim(call):E1142: Non-empty string required for argument 1', exc_exec('call exepath("")'))
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 exepath('..input..')'))
+ eq('Vim(call):E1174: String required for argument 1', exc_exec('call exepath('..input..')'))
end
end)