summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDominique Pelle <dominique.pelle@gmail.com>2021-12-05 13:21:18 +0000
committerBram Moolenaar <Bram@vim.org>2021-12-05 13:21:18 +0000
commitf645ee47c85940d05f492a1b3932fbcdfd4204b3 (patch)
treeecca9e93242fb70debd950b0822d5cde06b522c5
parent5e18ccc60bdddc4aa39ab039f1a7c918f29e67ce (diff)
downloadvim-git-f645ee47c85940d05f492a1b3932fbcdfd4204b3.tar.gz
patch 8.2.3744: E854 is not tested; some spelling suggestions are not testedv8.2.3744
Problem: E854 is not tested; some spelling suggestions are not tested. Solution: Add a couple of tests. (Dominique Pellé, closes #9279)
-rw-r--r--src/testdir/test_options.vim6
-rw-r--r--src/testdir/test_spell.vim5
-rw-r--r--src/version.c2
3 files changed, 13 insertions, 0 deletions
diff --git a/src/testdir/test_options.vim b/src/testdir/test_options.vim
index 585b19967..6fc456422 100644
--- a/src/testdir/test_options.vim
+++ b/src/testdir/test_options.vim
@@ -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)
diff --git a/src/testdir/test_spell.vim b/src/testdir/test_spell.vim
index b7437fd44..3c32450c2 100644
--- a/src/testdir/test_spell.vim
+++ b/src/testdir/test_spell.vim
@@ -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:')
diff --git a/src/version.c b/src/version.c
index cd7a96402..da1bc2dfd 100644
--- a/src/version.c
+++ b/src/version.c
@@ -754,6 +754,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 3744,
+/**/
3743,
/**/
3742,