1
0
forked from aniani/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 #9279)
This commit is contained in:
Dominique Pelle
2021-12-05 13:21:18 +00:00
committed by Bram Moolenaar
parent 5e18ccc60b
commit f645ee47c8
3 changed files with 13 additions and 0 deletions

View File

@@ -136,6 +136,12 @@ 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)

View File

@@ -267,6 +267,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:')

View File

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