diff src/testdir/test_vim9_disassemble.vim @ 20170:0612c64a2b87 v8.2.0640

patch 8.2.0640: Vim9: expanding does not work Commit: https://github.com/vim/vim/commit/cfe435d7feacf123ac060747b885f7c4328062ea Author: Bram Moolenaar <Bram@vim.org> Date: Sat Apr 25 20:02:55 2020 +0200 patch 8.2.0640: Vim9: expanding does not work Problem: Vim9: expanding does not work. Solution: Find wildcards in not compiled commands. Reorganize test files.
author Bram Moolenaar <Bram@vim.org>
date Sat, 25 Apr 2020 20:15:03 +0200
parents fe8d0a4344df
children bc2c9ea94ec1
line wrap: on
line diff
--- a/src/testdir/test_vim9_disassemble.vim
+++ b/src/testdir/test_vim9_disassemble.vim
@@ -53,6 +53,32 @@ def Test_disassemble_load()
         res)
 enddef
 
+def s:EditExpand()
+  let filename = "file"
+  let filenr = 123
+  edit the`=filename``=filenr`.txt
+enddef
+
+def Test_disassemble_exec_expr()
+  let res = execute('disass s:EditExpand')
+  assert_match('<SNR>\d*_EditExpand.*' ..
+        ' let filename = "file".*' ..
+        '\d PUSHS "file".*' ..
+        '\d STORE $0.*' ..
+        ' let filenr = 123.*' ..
+        '\d STORE 123 in $1.*' ..
+        ' edit the`=filename``=filenr`.txt.*' ..
+        '\d PUSHS "edit the".*' ..
+        '\d LOAD $0.*' ..
+        '\d LOAD $1.*' ..
+        '\d 2STRING stack\[-1\].*' ..
+        '\d PUSHS ".txt".*' ..
+        '\d EXECCONCAT 4.*' ..
+        '\d PUSHNR 0.*' ..
+        '\d RETURN',
+        res)
+enddef
+
 def s:ScriptFuncPush()
   let localbool = true
   let localspec = v:none