From: Bram Moolenaar Date: Mon, 3 May 2021 19:40:26 +0000 (+0200) Subject: patch 8.2.2831: Vim9: expandcmd() not tested X-Git-Tag: v8.2.2831 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=02795104442764cd162c2213c7d942a8ddc0a691;p=vim patch 8.2.2831: Vim9: expandcmd() not tested Problem: Vim9: expandcmd() not tested. Solution: Add a test. --- diff --git a/src/testdir/test_vim9_builtin.vim b/src/testdir/test_vim9_builtin.vim index bd84a6ca1..46fe3e5ca 100644 --- a/src/testdir/test_vim9_builtin.vim +++ b/src/testdir/test_vim9_builtin.vim @@ -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' diff --git a/src/version.c b/src/version.c index 63ede845c..d9868ef90 100644 --- a/src/version.c +++ b/src/version.c @@ -750,6 +750,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 2831, /**/ 2830, /**/