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:
@@ -336,6 +336,13 @@ def Test_expand()
|
|||||||
close
|
close
|
||||||
enddef
|
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()
|
def Test_extend_arg_types()
|
||||||
g:number_one = 1
|
g:number_one = 1
|
||||||
g:string_keep = 'keep'
|
g:string_keep = 'keep'
|
||||||
|
|||||||
@@ -750,6 +750,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
2831,
|
||||||
/**/
|
/**/
|
||||||
2830,
|
2830,
|
||||||
/**/
|
/**/
|
||||||
|
|||||||
Reference in New Issue
Block a user