mirror of
https://github.com/neovim/neovim.git
synced 2024-12-22 12:15:06 -07:00
vim-patch:8.2.3744: E854 is not tested; some spelling suggestions are not tested
Problem: E854 is not tested; some spelling suggestions are not tested.
Solution: Add a couple of tests. (Dominique Pellé, closes vim/vim#9279)
f645ee47c8
Add missing Test_signcolumn() from patch 7.4.2201.
Co-authored-by: Dominique Pelle <dominique.pelle@gmail.com>
This commit is contained in:
parent
7add38233e
commit
70843631fe
@ -157,6 +157,20 @@ func Test_path_keep_commas()
|
||||
set path&
|
||||
endfunc
|
||||
|
||||
func Test_path_too_long()
|
||||
exe 'set path=' .. repeat('x', 10000)
|
||||
call assert_fails('find x', 'E854:')
|
||||
set path&
|
||||
endfunc
|
||||
|
||||
func Test_signcolumn()
|
||||
CheckFeature signs
|
||||
call assert_equal("auto", &signcolumn)
|
||||
set signcolumn=yes
|
||||
set signcolumn=no
|
||||
call assert_fails('set signcolumn=nope')
|
||||
endfunc
|
||||
|
||||
func Test_filetype_valid()
|
||||
set ft=valid_name
|
||||
call assert_equal("valid_name", &filetype)
|
||||
|
@ -329,6 +329,11 @@ func Test_spellsuggest()
|
||||
call assert_equal(['Third'], spellsuggest('THird', 1))
|
||||
call assert_equal(['All'], spellsuggest('ALl', 1))
|
||||
|
||||
" Special suggestion for repeated 'the the'.
|
||||
call assert_inrange(0, 2, index(spellsuggest('the the', 3), 'the'))
|
||||
call assert_inrange(0, 2, index(spellsuggest('the the', 3), 'the'))
|
||||
call assert_inrange(0, 2, index(spellsuggest('The the', 3), 'The'))
|
||||
|
||||
call assert_fails("call spellsuggest('maxch', [])", 'E745:')
|
||||
call assert_fails("call spellsuggest('maxch', 2, [])", 'E745:')
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user