# HG changeset patch # User Bram Moolenaar # Date 1620071103 -7200 # Node ID abc4793f48a3835a6073456223d4f2f9381d5e7f # Parent ec248672f98e2cdc702fe6abe932dc7f6e53764f patch 8.2.2831: Vim9: expandcmd() not tested Commit: https://github.com/vim/vim/commit/02795104442764cd162c2213c7d942a8ddc0a691 Author: Bram Moolenaar Date: Mon May 3 21:40:26 2021 +0200 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 --- 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 --- a/src/version.c +++ b/src/version.c @@ -751,6 +751,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 2831, +/**/ 2830, /**/ 2829,