diff options
| author | Justin M. Keyes <justinkz@gmail.com> | 2016-09-18 13:49:39 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2016-09-18 13:49:39 +0200 |
| commit | c12801986c1d4c219a4a1d6fc30ec15c03d963b6 (patch) | |
| tree | 0faab0801f82b21d97d04b1850822ed1963ad43b /src/nvim/testdir | |
| parent | e1079c2a289de18923950338ea08ee80c01cc6cf (diff) | |
| parent | 89a7a4f02c35e414bc0bd33560738c9cf0abe33e (diff) | |
| download | rneovim-c12801986c1d4c219a4a1d6fc30ec15c03d963b6.tar.gz rneovim-c12801986c1d4c219a4a1d6fc30ec15c03d963b6.tar.bz2 rneovim-c12801986c1d4c219a4a1d6fc30ec15c03d963b6.zip | |
Merge #5254 from KillTheMule/vim-7.4.1952
vim-patch:7.4.{1952, 1990, 2033, 2284}
Diffstat (limited to 'src/nvim/testdir')
| -rw-r--r-- | src/nvim/testdir/Makefile | 1 | ||||
| -rw-r--r-- | src/nvim/testdir/test_cscope.vim | 15 |
2 files changed, 16 insertions, 0 deletions
diff --git a/src/nvim/testdir/Makefile b/src/nvim/testdir/Makefile index b7aacc7b3b..ff0f729460 100644 --- a/src/nvim/testdir/Makefile +++ b/src/nvim/testdir/Makefile @@ -32,6 +32,7 @@ SCRIPTS := \ # Tests using runtest.vim.vim. # Keep test_alot*.res as the last one, sort the others. NEW_TESTS = \ + test_cscope.res \ test_hardcopy.res \ test_help_tagjump.res \ test_langmap.res \ diff --git a/src/nvim/testdir/test_cscope.vim b/src/nvim/testdir/test_cscope.vim new file mode 100644 index 0000000000..b6d70f0765 --- /dev/null +++ b/src/nvim/testdir/test_cscope.vim @@ -0,0 +1,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 |