mirror of
https://github.com/neovim/neovim.git
synced 2026-08-31 03:13:48 +00:00
vim-patch:8.2.0426: some errors were not tested for
Problem: Some errors were not tested for.
Solution: Add tests. (Dominique Pelle, closes vim/vim#5824)
9b9be007e7
Cherry-pick get_highest_fnum() from patch 8.1.1908 to make tests pass.
This commit is contained in:
@@ -290,9 +290,10 @@ func Test_set_errors()
|
||||
call assert_fails('set regexpengine=3', 'E474:')
|
||||
call assert_fails('set history=10001', 'E474:')
|
||||
call assert_fails('set numberwidth=21', 'E474:')
|
||||
call assert_fails('set colorcolumn=-a')
|
||||
call assert_fails('set colorcolumn=a')
|
||||
call assert_fails('set colorcolumn=1,')
|
||||
call assert_fails('set colorcolumn=-a', 'E474:')
|
||||
call assert_fails('set colorcolumn=a', 'E474:')
|
||||
call assert_fails('set colorcolumn=1,', 'E474:')
|
||||
call assert_fails('set colorcolumn=1;', 'E474:')
|
||||
call assert_fails('set cmdheight=-1', 'E487:')
|
||||
call assert_fails('set cmdwinheight=-1', 'E487:')
|
||||
if has('conceal')
|
||||
@@ -343,9 +344,13 @@ func Test_set_errors()
|
||||
call assert_fails('set guicursor=i-ci,r-cr:h', 'E545:')
|
||||
call assert_fails('set guicursor=i-ci', 'E545:')
|
||||
call assert_fails('set guicursor=x', 'E545:')
|
||||
call assert_fails('set guicursor=x:', 'E546:')
|
||||
call assert_fails('set guicursor=r-cr:horx', 'E548:')
|
||||
call assert_fails('set guicursor=r-cr:hor0', 'E549:')
|
||||
endif
|
||||
if has('mouseshape')
|
||||
call assert_fails('se mouseshape=i-r:x', 'E547:')
|
||||
endif
|
||||
call assert_fails('set backupext=~ patchmode=~', 'E589:')
|
||||
call assert_fails('set winminheight=10 winheight=9', 'E591:')
|
||||
call assert_fails('set winminwidth=10 winwidth=9', 'E592:')
|
||||
|
||||
Reference in New Issue
Block a user