diff options
author | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2019-08-03 11:37:11 -0400 |
---|---|---|
committer | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2019-08-03 11:38:52 -0400 |
commit | 01b2dac727e412bd2920694b20f85696e1d9c751 (patch) | |
tree | 08dc6c9e7982c569e2f2ffba7f060ce9749159de | |
parent | a49cf5126915bcc29167312105564304791b1796 (diff) | |
download | rneovim-01b2dac727e412bd2920694b20f85696e1d9c751.tar.gz rneovim-01b2dac727e412bd2920694b20f85696e1d9c751.tar.bz2 rneovim-01b2dac727e412bd2920694b20f85696e1d9c751.zip |
vim-patch:8.1.1796: :argdo is not tested
Problem: :argdo is not tested
Solution: Add a test.
https://github.com/vim/vim/commit/72e1b39111389001a20fbe8aa344ce2fe0a7e1a4
-rw-r--r-- | src/nvim/testdir/test_arglist.vim | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_arglist.vim b/src/nvim/testdir/test_arglist.vim index fbe4fcc50f..df72ff0a32 100644 --- a/src/nvim/testdir/test_arglist.vim +++ b/src/nvim/testdir/test_arglist.vim @@ -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 |