diff options
author | Dominique Pelle <dominique.pelle@gmail.com> | 2021-12-05 13:21:18 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2021-12-05 13:21:18 +0000 |
commit | f645ee47c85940d05f492a1b3932fbcdfd4204b3 (patch) | |
tree | ecca9e93242fb70debd950b0822d5cde06b522c5 /src/testdir/test_spell.vim | |
parent | 5e18ccc60bdddc4aa39ab039f1a7c918f29e67ce (diff) |
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)
Diffstat (limited to 'src/testdir/test_spell.vim')
-rw-r--r-- | src/testdir/test_spell.vim | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/testdir/test_spell.vim b/src/testdir/test_spell.vim index b7437fd448..3c32450c24 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:') |