forked from aniani/vim
patch 8.2.3345: some code not covered by tests
Problem: Some code not covered by tests. Solution: Add a few more tests. (Dominique Pellé, closes #8757)
This commit is contained in:
committed by
Bram Moolenaar
parent
d2e9ccee90
commit
bfb2bb16bc
@@ -845,6 +845,14 @@ func Test_cmdline_complete_various()
|
||||
call feedkeys(":doautocmd BufNew,BufEn\<C-A>\<C-B>\"\<CR>", 'xt')
|
||||
call assert_equal("\"doautocmd BufNew,BufEnter", @:)
|
||||
|
||||
" completion of file name in :doautocmd
|
||||
call writefile([], 'Xfile1')
|
||||
call writefile([], 'Xfile2')
|
||||
call feedkeys(":doautocmd BufEnter Xfi\<C-A>\<C-B>\"\<CR>", 'xt')
|
||||
call assert_equal("\"doautocmd BufEnter Xfile1 Xfile2", @:)
|
||||
call delete('Xfile1')
|
||||
call delete('Xfile2')
|
||||
|
||||
" completion for the :augroup command
|
||||
augroup XTest
|
||||
augroup END
|
||||
@@ -1415,6 +1423,10 @@ func Test_cmd_backtick()
|
||||
argadd `=['a', 'b', 'c']`
|
||||
call assert_equal(['a', 'b', 'c'], argv())
|
||||
%argd
|
||||
|
||||
argadd `echo abc def`
|
||||
call assert_equal(['abc def'], argv())
|
||||
%argd
|
||||
endfunc
|
||||
|
||||
" Test for the :! command
|
||||
|
||||
Reference in New Issue
Block a user