0
0
mirror of https://github.com/vim/vim.git synced 2025-09-28 04:24:06 -04:00

patch 8.0.0057

Problem:    Tests fail without the 'keymap' features.
Solution:   Check for feature in test.
This commit is contained in:
Bram Moolenaar
2016-11-04 16:41:20 +01:00
parent d0b5138ba4
commit 9376f5f482
2 changed files with 11 additions and 0 deletions

View File

@@ -49,6 +49,9 @@ func Test_signcolumn()
endfunc
func Test_filetype_valid()
if !has('autocmd')
return
endif
set ft=valid_name
call assert_equal("valid_name", &filetype)
set ft=valid-name
@@ -66,6 +69,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
@@ -83,6 +89,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:")

View File

@@ -764,6 +764,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
57,
/**/
56,
/**/