aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/testdir/test_cscope.vim
blob: b6d70f0765e49137ba3cb6576dcf6d5d71b933ee (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
" Test for cscope commands.

if !has('cscope')
  finish
endif

func Test_cscopequickfix()
  set cscopequickfix=s-,g-,d+,c-,t+,e-,f0,i-,a-
  call assert_equal('s-,g-,d+,c-,t+,e-,f0,i-,a-', &cscopequickfix)

  call assert_fails('set cscopequickfix=x-', 'E474:')
  call assert_fails('set cscopequickfix=s', 'E474:')
  call assert_fails('set cscopequickfix=s7', 'E474:')
  call assert_fails('set cscopequickfix=s-a', 'E474:')
endfunc