diff options
author | zeertzjq <zeertzjq@outlook.com> | 2022-09-12 14:03:32 +0800 |
---|---|---|
committer | zeertzjq <zeertzjq@outlook.com> | 2022-09-12 14:56:42 +0800 |
commit | 38059b4f31d8c9374002e209bc9ee2df28ac17fa (patch) | |
tree | 20ad18d7b52726213d1f00c35bc3925da64b318b /test/functional/vimscript/exepath_spec.lua | |
parent | f98cff9575e75a050d2bde01ad950c0c72bcfc3e (diff) | |
download | rneovim-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.lua | 6 |
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) |