Mercurial > vim
changeset 26426:c59d60e21ef5 v8.2.3744
patch 8.2.3744: E854 is not tested; some spelling suggestions are not tested
Commit: https://github.com/vim/vim/commit/f645ee47c85940d05f492a1b3932fbcdfd4204b3
Author: Dominique Pelle <dominique.pelle@gmail.com>
Date: Sun Dec 5 13:21:18 2021 +0000
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 https://github.com/vim/vim/issues/9279)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 05 Dec 2021 14:30:03 +0100 |
parents | 976b5fc1ff82 |
children | 549cd187f215 |
files | src/testdir/test_options.vim src/testdir/test_spell.vim src/version.c |
diffstat | 3 files changed, 13 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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)
--- 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:')