Mercurial > vim
annotate src/testdir/test_argument_0count.in @ 7593:87e607fb6853 v7.4.1096
commit https://github.com/vim/vim/commit/a260b87d9da17f605666630f18c1ed909c2b8bae
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri Jan 15 20:48:22 2016 +0100
patch 7.4.1096
Problem: Need several lines to verify a command produces an error.
Solution: Add assert_fails(). (suggested by Nikolay Pavlov)
Make the quickfix alloc test actually work.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Fri, 15 Jan 2016 21:00:06 +0100 |
parents | a03e143b9358 |
children |
rev | line source |
---|---|
6522 | 1 Tests for :0argadd and :0argedit vim: set ft=vim : |
2 | |
3 STARTTEST | |
4 :so small.vim | |
5 :let arglists = [] | |
6 :%argd | |
7 :arga a b c d | |
8 :2argu | |
9 :0arga added | |
10 :call add(arglists, argv()) | |
11 :2argu | |
12 :arga third | |
13 :call add(arglists, argv()) | |
14 :%argd | |
15 :arga a b c d | |
16 :2argu | |
17 :0arge edited | |
18 :call add(arglists, argv()) | |
19 :2argu | |
20 :arga third | |
21 :call add(arglists, argv()) | |
22 :e! test.out | |
23 :call append(0, map(copy(arglists), 'join(v:val, " ")')) | |
24 :w | |
25 :qa! | |
26 ENDTEST | |
27 | |
28 |