comparison src/testdir/test_help_tagjump.vim @ 11167:260100346566 v8.0.0470

patch 8.0.0470: not enough testing for help commands commit https://github.com/vim/vim/commit/751ba616d1c47de2c273b269df06c36a7ed141a2 Author: Bram Moolenaar <Bram@vim.org> Date: Thu Mar 16 22:26:44 2017 +0100 patch 8.0.0470: not enough testing for help commands Problem: Not enough testing for help commands. Solution: Add a few more help tests. (Dominique Pelle, closes https://github.com/vim/vim/issues/1565)
author Christian Brabandt <cb@256bit.org>
date Thu, 16 Mar 2017 22:30:04 +0100
parents 2edda415c28a
children 90bed90d1130
comparison
equal deleted inserted replaced
11166:5fe89eb60658 11167:260100346566
4 help 4 help
5 call assert_equal("help", &filetype) 5 call assert_equal("help", &filetype)
6 call assert_true(getline('.') =~ '\*help.txt\*') 6 call assert_true(getline('.') =~ '\*help.txt\*')
7 helpclose 7 helpclose
8 8
9 help |
10 call assert_equal("help", &filetype)
11 call assert_true(getline('.') =~ '\*bar\*')
12 helpclose
13
14 help "*
15 call assert_equal("help", &filetype)
16 call assert_true(getline('.') =~ '\*quotestar\*')
17 helpclose
18
19 help sm?le
20 call assert_equal("help", &filetype)
21 call assert_true(getline('.') =~ '\*:smile\*')
22 helpclose
23
24 help :?
25 call assert_equal("help", &filetype)
26 call assert_true(getline('.') =~ '\*:?\*')
27 helpclose
28
29 help FileW*Post
30 call assert_equal("help", &filetype)
31 call assert_true(getline('.') =~ '\*FileWritePost\*')
32 helpclose
33
34 help `ls`
35 call assert_equal("help", &filetype)
36 call assert_true(getline('.') =~ '\*:ls\*')
37 helpclose
38
39 help ^X
40 call assert_equal("help", &filetype)
41 call assert_true(getline('.') =~ '\*CTRL-X\*')
42 helpclose
43
44 help i_^_CTRL-D
45 call assert_equal("help", &filetype)
46 call assert_true(getline('.') =~ '\*i_^_CTRL-D\*')
47 helpclose
48
49 exec "help \<C-V>"
50 call assert_equal("help", &filetype)
51 call assert_true(getline('.') =~ '\*CTRL-V\*')
52 helpclose
53
54
9 exec "help! ('textwidth'" 55 exec "help! ('textwidth'"
10 call assert_equal("help", &filetype) 56 call assert_equal("help", &filetype)
11 call assert_true(getline('.') =~ "\\*'textwidth'\\*") 57 call assert_true(getline('.') =~ "\\*'textwidth'\\*")
12 helpclose 58 helpclose
13 59
32 helpclose 78 helpclose
33 79
34 exec "help! {address}." 80 exec "help! {address}."
35 call assert_equal("help", &filetype) 81 call assert_equal("help", &filetype)
36 call assert_true(getline('.') =~ '\*{address}\*') 82 call assert_true(getline('.') =~ '\*{address}\*')
83 helpclose
84
85 exusage
86 call assert_equal("help", &filetype)
87 call assert_true(getline('.') =~ '\*:index\*')
88 helpclose
89
90 viusage
91 call assert_equal("help", &filetype)
92 call assert_true(getline('.') =~ '\*normal-index\*')
37 helpclose 93 helpclose
38 endfunc 94 endfunc
39 95
40 let s:langs = ['en', 'ab', 'ja'] 96 let s:langs = ['en', 'ab', 'ja']
41 97