Mercurial > vim
comparison src/testdir/test_spell.vim @ 19783:546bdeef35f1 v8.2.0448
patch 8.2.0448: various functions not properly tested
Commit: https://github.com/vim/vim/commit/0e05de46226eb4e5ea580beefa71831f92d613d3
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed Mar 25 22:23:46 2020 +0100
patch 8.2.0448: various functions not properly tested
Problem: Various functions not properly tested.
Solution: Add more tests, especially for failures. (Yegappan Lakshmanan,
closes #5843)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Wed, 25 Mar 2020 22:30:04 +0100 |
parents | da98d2ed8dc5 |
children | 90b96fa35e4b |
comparison
equal
deleted
inserted
replaced
19782:e5f4316b01dd | 19783:546bdeef35f1 |
---|---|
157 " require three upper case letters. | 157 " require three upper case letters. |
158 call assert_equal(['THIRD', 'third'], spellsuggest('thIRD', 2)) | 158 call assert_equal(['THIRD', 'third'], spellsuggest('thIRD', 2)) |
159 call assert_equal(['third', 'THIRD'], spellsuggest('tHIrd', 2)) | 159 call assert_equal(['third', 'THIRD'], spellsuggest('tHIrd', 2)) |
160 call assert_equal(['Third'], spellsuggest('THird', 1)) | 160 call assert_equal(['Third'], spellsuggest('THird', 1)) |
161 call assert_equal(['All'], spellsuggest('ALl', 1)) | 161 call assert_equal(['All'], spellsuggest('ALl', 1)) |
162 | |
163 call assert_fails("call spellsuggest('maxch', [])", 'E745:') | |
164 call assert_fails("call spellsuggest('maxch', 2, [])", 'E745:') | |
162 | 165 |
163 set spell& | 166 set spell& |
164 endfunc | 167 endfunc |
165 | 168 |
166 " Test 'spellsuggest' option with methods fast, best and double. | 169 " Test 'spellsuggest' option with methods fast, best and double. |
1162 \"SAL X KS", | 1165 \"SAL X KS", |
1163 \"SAL Y(AEIOU)- Y", | 1166 \"SAL Y(AEIOU)- Y", |
1164 \"SAL ZZ- _", | 1167 \"SAL ZZ- _", |
1165 \"SAL Z S", | 1168 \"SAL Z S", |
1166 \ ] | 1169 \ ] |
1170 | |
1171 " vim: shiftwidth=2 sts=2 expandtab |