1
0
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:
Dominique Pelle
2021-08-14 21:11:51 +02:00
committed by Bram Moolenaar
parent d2e9ccee90
commit bfb2bb16bc
5 changed files with 84 additions and 0 deletions

View File

@@ -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