1
0
forked from aniani/vim

patch 8.2.2831: Vim9: expandcmd() not tested

Problem:    Vim9: expandcmd() not tested.
Solution:   Add a test.
This commit is contained in:
Bram Moolenaar
2021-05-03 21:40:26 +02:00
parent ad43199572
commit 0279510444
2 changed files with 9 additions and 0 deletions

View File

@@ -336,6 +336,13 @@ def Test_expand()
close
enddef
def Test_expandcmd()
$FOO = "blue"
assert_equal("blue sky", expandcmd("`=$FOO .. ' sky'`"))
assert_equal("yes", expandcmd("`={a: 'yes'}['a']`"))
enddef
def Test_extend_arg_types()
g:number_one = 1
g:string_keep = 'keep'

View File

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