Mercurial > vim
comparison src/testdir/test_arglist.vim @ 17598:c1aa462d2d45 v8.1.1796
patch 8.1.1796: :argdo is not tested
commit https://github.com/vim/vim/commit/72e1b39111389001a20fbe8aa344ce2fe0a7e1a4
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Aug 3 13:50:08 2019 +0200
patch 8.1.1796: :argdo is not tested
Problem: :argdo is not tested
Solution: Add a test.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 03 Aug 2019 14:00:06 +0200 |
parents | 2b35e273392b |
children | 45eca7143d7c |
comparison
equal
deleted
inserted
replaced
17597:bdb0cb436806 | 17598:c1aa462d2d45 |
---|---|
494 " Argument longer or equal to the number of columns used to cause | 494 " Argument longer or equal to the number of columns used to cause |
495 " access to invalid memory. | 495 " access to invalid memory. |
496 exe 'argadd ' .repeat('x', &columns) | 496 exe 'argadd ' .repeat('x', &columns) |
497 args | 497 args |
498 endfunc | 498 endfunc |
499 | |
500 func Test_argdo() | |
501 next! Xa.c Xb.c Xc.c | |
502 new | |
503 let l = [] | |
504 argdo call add(l, expand('%')) | |
505 call assert_equal(['Xa.c', 'Xb.c', 'Xc.c'], l) | |
506 bwipe Xa.c Xb.c Xc.c | |
507 endfunc |