1
0
forked from aniani/vim

patch 8.1.1796: :argdo is not tested

Problem:    :argdo is not tested
Solution:   Add a test.
This commit is contained in:
Bram Moolenaar
2019-08-03 13:50:08 +02:00
parent c7f1e40021
commit 72e1b39111
2 changed files with 11 additions and 0 deletions

View File

@@ -496,3 +496,12 @@ func Test_large_arg()
exe 'argadd ' .repeat('x', &columns)
args
endfunc
func Test_argdo()
next! Xa.c Xb.c Xc.c
new
let l = []
argdo call add(l, expand('%'))
call assert_equal(['Xa.c', 'Xb.c', 'Xc.c'], l)
bwipe Xa.c Xb.c Xc.c
endfunc

View File

@@ -773,6 +773,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
1796,
/**/
1795,
/**/