mirror of
https://github.com/neovim/neovim.git
synced 2024-12-19 18:55:14 -07:00
vim-patch:8.0.0057
Problem: Tests fail without the 'keymap' features.
Solution: Check for feature in test.
9376f5f482
This commit is contained in:
parent
4fad66fbe6
commit
c685879eea
@ -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:")
|
||||
|
Loading…
Reference in New Issue
Block a user