Patch 8.2.2831
Problem:    Vim9: expandcmd() not tested.
Solution:   Add a test.
Files:      src/testdir/test_vim9_builtin.vim


*** ../vim-8.2.2830/src/testdir/test_vim9_builtin.vim   2021-04-18 
15:48:00.558271397 +0200
--- src/testdir/test_vim9_builtin.vim   2021-05-03 21:38:40.984005817 +0200
***************
*** 336,341 ****
--- 336,348 ----
    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'
*** ../vim-8.2.2830/src/version.c       2021-05-03 20:40:35.267818659 +0200
--- src/version.c       2021-05-03 21:39:22.231904371 +0200
***************
*** 752,753 ****
--- 752,755 ----
  {   /* Add new patch number below this line */
+ /**/
+     2831,
  /**/

-- 
hundred-and-one symptoms of being an internet addict:
227. You sleep next to your monitor.  Or on top of it.

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///                                                                      \\\
\\\        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/202105031940.143Jeu5Z371569%40masaka.moolenaar.net.

Raspunde prin e-mail lui