| Bram Moolenaar | d3f78dc | 2017-02-25 14:21:10 +0100 | [diff] [blame^] | 1 | " Test spell checking |
| 2 | " TODO: move test58 tests here | ||||
| 3 | |||||
| 4 | if !has('spell') | ||||
| 5 | finish | ||||
| 6 | endif | ||||
| 7 | |||||
| 8 | func Test_wrap_search() | ||||
| 9 | new | ||||
| 10 | call setline(1, ['The', '', 'A plong line with two zpelling mistakes', '', 'End']) | ||||
| 11 | set spell wrapscan | ||||
| 12 | normal ]s | ||||
| 13 | call assert_equal('plong', expand('<cword>')) | ||||
| 14 | normal ]s | ||||
| 15 | call assert_equal('zpelling', expand('<cword>')) | ||||
| 16 | normal ]s | ||||
| 17 | call assert_equal('plong', expand('<cword>')) | ||||
| 18 | bwipe! | ||||
| 19 | set nospell | ||||
| 20 | endfunc | ||||