aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/testdir/test_spell.vim
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2022-11-06 17:11:25 +0800
committerGitHub <noreply@github.com>2022-11-06 17:11:25 +0800
commitc30226c28b44f1eefd495f7345219b62662c0dbc (patch)
tree486e1e2d9d5809d5cfc041959c777939c0ef3ef6 /src/nvim/testdir/test_spell.vim
parentc6af296cf8e381731f8a233cf89396e0dc7fd4ba (diff)
parent70843631fe8d2e8e93e6ecf7d08c7824352938b7 (diff)
downloadrneovim-c30226c28b44f1eefd495f7345219b62662c0dbc.tar.gz
rneovim-c30226c28b44f1eefd495f7345219b62662c0dbc.tar.bz2
rneovim-c30226c28b44f1eefd495f7345219b62662c0dbc.zip
Merge pull request #20962 from zeertzjq/vim-8.2.1736
vim-patch:8.2.{1736,3719,3744}
Diffstat (limited to 'src/nvim/testdir/test_spell.vim')
-rw-r--r--src/nvim/testdir/test_spell.vim5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_spell.vim b/src/nvim/testdir/test_spell.vim
index d8495fdb9b..ea18fc5194 100644
--- a/src/nvim/testdir/test_spell.vim
+++ b/src/nvim/testdir/test_spell.vim
@@ -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:')