vim-patch:8.1.1796: :argdo is not tested

Problem:    :argdo is not tested
Solution:   Add a test.
72e1b39111
This commit is contained in:
Jan Edmund Lazo 2019-08-03 11:37:11 -04:00
parent a49cf51269
commit 01b2dac727

View File

@ -477,3 +477,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