0
0
mirror of https://github.com/vim/vim.git synced 2025-07-24 10:45:12 -04:00

patch 8.2.2127: Vim9: executing user command from Vim9 script not tested

Problem:    Vim9: executing user command defined in Vim9 script not tested.
Solution:   Add a test.
This commit is contained in:
Bram Moolenaar 2020-12-10 21:01:30 +01:00
parent 0e12140550
commit 70249ee831
2 changed files with 23 additions and 0 deletions

View File

@ -2381,6 +2381,27 @@ def Test_vim9_comment()
'Echo',
], 'E121:')
delcommand Echo
var curdir = getcwd()
CheckScriptSuccess([
'command Echo cd " comment',
'Echo',
'delcommand Echo',
])
CheckScriptSuccess([
'vim9script'
'command Echo cd # comment',
'Echo',
'delcommand Echo',
])
CheckScriptFailure([
'vim9script',
'command Echo cd " comment',
'Echo',
], 'E344:')
delcommand Echo
chdir(curdir)
CheckScriptFailure([
'vim9script',
'command Echo# comment',

View File

@ -750,6 +750,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
2127,
/**/
2126,
/**/