Mercurial > vim
comparison src/testdir/test_spell.vim @ 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 | 25b93e560a7c |
children | d0096a7f8d96 |
comparison
equal
deleted
inserted
replaced
26425:976b5fc1ff82 | 26426:c59d60e21ef5 |
---|---|
264 " require three upper case letters. | 264 " require three upper case letters. |
265 call assert_equal(['THIRD', 'third'], spellsuggest('thIRD', 2)) | 265 call assert_equal(['THIRD', 'third'], spellsuggest('thIRD', 2)) |
266 call assert_equal(['third', 'THIRD'], spellsuggest('tHIrd', 2)) | 266 call assert_equal(['third', 'THIRD'], spellsuggest('tHIrd', 2)) |
267 call assert_equal(['Third'], spellsuggest('THird', 1)) | 267 call assert_equal(['Third'], spellsuggest('THird', 1)) |
268 call assert_equal(['All'], spellsuggest('ALl', 1)) | 268 call assert_equal(['All'], spellsuggest('ALl', 1)) |
269 | |
270 " Special suggestion for repeated 'the the'. | |
271 call assert_inrange(0, 2, index(spellsuggest('the the', 3), 'the')) | |
272 call assert_inrange(0, 2, index(spellsuggest('the the', 3), 'the')) | |
273 call assert_inrange(0, 2, index(spellsuggest('The the', 3), 'The')) | |
269 | 274 |
270 call assert_fails("call spellsuggest('maxch', [])", 'E745:') | 275 call assert_fails("call spellsuggest('maxch', [])", 'E745:') |
271 call assert_fails("call spellsuggest('maxch', 2, [])", 'E745:') | 276 call assert_fails("call spellsuggest('maxch', 2, [])", 'E745:') |
272 | 277 |
273 set spelllang= | 278 set spelllang= |