diff options
author | James McCoy <jamessan@jamessan.com> | 2016-11-20 13:06:04 -0500 |
---|---|---|
committer | James McCoy <jamessan@jamessan.com> | 2016-11-20 14:07:46 -0500 |
commit | c685879eea5afae752766b29fbab13b3085d2bb8 (patch) | |
tree | 10d71e3d1a61e59db0a6f340d6ed669dc0861923 | |
parent | 4fad66fbe637818b6b3d6bc5d21923ba72795040 (diff) | |
download | rneovim-c685879eea5afae752766b29fbab13b3085d2bb8.tar.gz rneovim-c685879eea5afae752766b29fbab13b3085d2bb8.tar.bz2 rneovim-c685879eea5afae752766b29fbab13b3085d2bb8.zip |
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
-rw-r--r-- | src/nvim/testdir/test_options.vim | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_options.vim b/src/nvim/testdir/test_options.vim index 93657f8fed..5ee0919e18 100644 --- a/src/nvim/testdir/test_options.vim +++ b/src/nvim/testdir/test_options.vim @@ -40,6 +40,9 @@ function! Test_path_keep_commas() endfunction func Test_filetype_valid() + if !has('autocmd') + return + endif set ft=valid_name call assert_equal("valid_name", &filetype) set ft=valid-name @@ -57,6 +60,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 @@ -74,6 +80,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:") |