mirror of
https://github.com/neovim/neovim.git
synced 2024-12-20 19:25:11 -07:00
vim-patch:8.1.1796: :argdo is not tested
Problem: :argdo is not tested
Solution: Add a test.
72e1b39111
This commit is contained in:
parent
a49cf51269
commit
01b2dac727
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user