Mercurial > vim
changeset 24584:abc4793f48a3 v8.2.2831
patch 8.2.2831: Vim9: expandcmd() not tested
Commit: https://github.com/vim/vim/commit/02795104442764cd162c2213c7d942a8ddc0a691
Author: Bram Moolenaar <Bram@vim.org>
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.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Mon, 03 May 2021 21:45:03 +0200 |
parents | ec248672f98e |
children | 2cbf16b37b92 |
files | src/testdir/test_vim9_builtin.vim src/version.c |
diffstat | 2 files changed, 9 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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'