Mercurial > vim
annotate src/testdir/test67.in @ 11434:b3815e491811 v8.0.0601
patch 8.0.0601: no test coverage for :spellrepall
commit https://github.com/vim/vim/commit/545cb79da586be3333a0a55616046f94b01f6b1a
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue May 23 11:31:22 2017 +0200
patch 8.0.0601: no test coverage for :spellrepall
Problem: No test coverage for :spellrepall.
Solution: Add a test. (Dominique Pelle, closes https://github.com/vim/vim/issues/1717)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Tue, 23 May 2017 11:45:03 +0200 |
parents | e5dddd764fef |
children |
rev | line source |
---|---|
1962 | 1 Test that groups and patterns are tested correctly when calling exists() for |
2 autocommands. | |
3 | |
4 STARTTEST | |
5 :so small.vim | |
6 :let results=[] | |
7 :augroup auexists | |
8 :augroup END | |
9 :call add(results, "##BufEnter: " . exists("##BufEnter")) | |
10 :call add(results, "#BufEnter: " . exists("#BufEnter")) | |
11 :au BufEnter * let g:entered=1 | |
12 :call add(results, "#BufEnter: " . exists("#BufEnter")) | |
13 :call add(results, "#auexists#BufEnter: " . exists("#auexists#BufEnter")) | |
14 :augroup auexists | |
15 :au BufEnter * let g:entered=1 | |
16 :augroup END | |
17 :call add(results, "#auexists#BufEnter: " . exists("#auexists#BufEnter")) | |
18 :call add(results, "#BufEnter#*.test: " . exists("#BufEnter#*.test")) | |
19 :au BufEnter *.test let g:entered=1 | |
20 :call add(results, "#BufEnter#*.test: " . exists("#BufEnter#*.test")) | |
21 :edit testfile.test | |
22 :call add(results, "#BufEnter#<buffer>: " . exists("#BufEnter#<buffer>")) | |
23 :au BufEnter <buffer> let g:entered=1 | |
24 :call add(results, "#BufEnter#<buffer>: " . exists("#BufEnter#<buffer>")) | |
25 :edit testfile2.test | |
26 :call add(results, "#BufEnter#<buffer>: " . exists("#BufEnter#<buffer>")) | |
10270
e5dddd764fef
commit https://github.com/vim/vim/commit/3e8474dd50f64c998bb665ce852f584a58dede6b
Christian Brabandt <cb@256bit.org>
parents:
1962
diff
changeset
|
27 :e! test.out |
1962 | 28 :call append(0, results) |
29 :$d | |
30 :w | |
31 :qa! | |
32 ENDTEST | |
33 |