view src/testdir/test_cscope.vim @ 9505:da98db362fef v7.4.2033

commit https://github.com/vim/vim/commit/6d20e1754461b0f8d395f2e3464f0dc1060497f7 Author: Bram Moolenaar <Bram@vim.org> Date: Wed Jul 13 22:44:12 2016 +0200 patch 7.4.2033 Problem: 'cscopequickfix' option does not accept new value "a". Solution: Adjust list of command characters. (Ken Takata)
author Christian Brabandt <cb@256bit.org>
date Wed, 13 Jul 2016 22:45:05 +0200
parents
children ab96eb561a7e
line wrap: on
line source

" 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