[neovim] 02/04: vim-patch:8.0.0057
James McCoy
jamessan at debian.org
Tue Nov 22 16:49:23 UTC 2016
This is an automated email from the git hooks/post-receive script.
jamessan pushed a commit to branch debian/sid
in repository neovim.
commit f17aab791a7b6ebaf019e3b100696449e38cec88
Author: James McCoy <jamessan at jamessan.com>
Date: Sun Nov 20 13:06:04 2016 -0500
vim-patch:8.0.0057
Problem: Tests fail without the 'keymap' features.
Solution: Check for feature in test.
https://github.com/vim/vim/commit/9376f5f482a4d579436bf364778c2d8ab8e2f22d
---
src/nvim/testdir/test_options.vim | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/src/nvim/testdir/test_options.vim b/src/nvim/testdir/test_options.vim
index 86c8bb8..c03bb8e 100644
--- a/src/nvim/testdir/test_options.vim
+++ b/src/nvim/testdir/test_options.vim
@@ -1,6 +1,9 @@
" Test for options
func Test_filetype_valid()
+ if !has('autocmd')
+ return
+ endif
set ft=valid_name
call assert_equal("valid_name", &filetype)
set ft=valid-name
@@ -18,6 +21,9 @@ func Test_filetype_valid()
endfunc
func Test_syntax_valid()
+ if !has('syntax')
+ return
+ endif
set syn=valid_name
call assert_equal("valid_name", &syntax)
set syn=valid-name
@@ -35,6 +41,9 @@ func Test_syntax_valid()
endfunc
func Test_keymap_valid()
+ if !has('keymap')
+ return
+ endif
call assert_fails(":set kmp=valid_name", "E544:")
call assert_fails(":set kmp=valid_name", "valid_name")
call assert_fails(":set kmp=valid-name", "E544:")
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-vim/neovim.git
More information about the pkg-vim-maintainers
mailing list