Bram Moolenaar | 6d20e17 | 2016-07-13 22:44:12 +0200 | [diff] [blame] | 1 | " Test for cscope commands. |
2 | |||||
3 | if !has('cscope') | ||||
4 | finish | ||||
5 | endif | ||||
6 | |||||
7 | func Test_cscopequickfix() | ||||
8 | set cscopequickfix=s-,g-,d+,c-,t+,e-,f0,i-,a- | ||||
9 | call assert_equal('s-,g-,d+,c-,t+,e-,f0,i-,a-', &cscopequickfix) | ||||
10 | |||||
11 | call assert_fails('set cscopequickfix=x-', 'E474:') | ||||
12 | call assert_fails('set cscopequickfix=s', 'E474:') | ||||
13 | call assert_fails('set cscopequickfix=s7', 'E474:') | ||||
14 | call assert_fails('set cscopequickfix=s-a', 'E474:') | ||||
15 | endfunc |