]> granicus.if.org Git - vim/commitdiff
patch 8.1.1796: :argdo is not tested v8.1.1796
authorBram Moolenaar <Bram@vim.org>
Sat, 3 Aug 2019 11:50:08 +0000 (13:50 +0200)
committerBram Moolenaar <Bram@vim.org>
Sat, 3 Aug 2019 11:50:08 +0000 (13:50 +0200)
Problem:    :argdo is not tested
Solution:   Add a test.

src/testdir/test_arglist.vim
src/version.c

index f161d6ec182b76c691846181eb937c4bfda17dd9..fc086fa434dd05bd0c7f3914e1fc65694f4e42c2 100644 (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
index 10e05f4b11f87b78c31ee43cfe7bd7af017136fe..2b9149095f775a009197d11be82059b488ca3f2f 100644 (file)
@@ -773,6 +773,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1796,
 /**/
     1795,
 /**/