1
0
forked from aniani/vim

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.
This commit is contained in:
Bram Moolenaar
2020-04-25 20:02:55 +02:00
parent 49b2fb36ca
commit cfe435d7fe
11 changed files with 373 additions and 214 deletions

View File

@@ -0,0 +1,23 @@
" Test commands that are not compiled in a :def function
source vim9.vim
def Test_edit_wildcards()
let filename = 'Xtest'
edit `=filename`
assert_equal('Xtest', bufname())
let filenr = 123
edit Xtest`=filenr`
assert_equal('Xtest123', bufname())
filenr = 77
edit `=filename``=filenr`
assert_equal('Xtest77', bufname())
edit X`=filename`xx`=filenr`yy
assert_equal('XXtestxx77yy', bufname())
enddef
" vim: ts=8 sw=2 sts=2 expandtab tw=80 fdm=marker