diff options
author | Bram Moolenaar <Bram@vim.org> | 2019-08-03 13:50:08 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2019-08-03 13:50:08 +0200 |
commit | 72e1b39111389001a20fbe8aa344ce2fe0a7e1a4 (patch) | |
tree | a6519eab586c2cacf7e49794c3a93c8771b91e73 /src/testdir/test_arglist.vim | |
parent | c7f1e4002184903f4e12e429dd5c6ab731932f86 (diff) | |
download | vim-git-72e1b39111389001a20fbe8aa344ce2fe0a7e1a4.tar.gz |
patch 8.1.1796: :argdo is not testedv8.1.1796
Problem: :argdo is not tested
Solution: Add a test.
Diffstat (limited to 'src/testdir/test_arglist.vim')
-rw-r--r-- | src/testdir/test_arglist.vim | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/testdir/test_arglist.vim b/src/testdir/test_arglist.vim index f161d6ec1..fc086fa43 100644 --- a/src/testdir/test_arglist.vim +++ b/src/testdir/test_arglist.vim @@ -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 |