Mercurial > vim
comparison src/testdir/test_spell.vim @ 11824:b276c1e73c27 v8.0.0792
patch 8.0.0792: spell test leaves files behind
commit https://github.com/vim/vim/commit/1a0f2005002a9993ba7313d1978fa2043314f8b8
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri Jul 28 15:38:10 2017 +0200
patch 8.0.0792: spell test leaves files behind
Problem: Spell test leaves files behind.
Solution: Delete the files.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Fri, 28 Jul 2017 15:45:04 +0200 |
parents | 7798e9bcdb13 |
children | 514c1741ab8c |
comparison
equal
deleted
inserted
replaced
11823:2682017d9bb9 | 11824:b276c1e73c27 |
---|---|
1 " Test spell checking | 1 " Test spell checking |
2 | 2 |
3 if !has('spell') | 3 if !has('spell') |
4 finish | 4 finish |
5 endif | 5 endif |
6 | |
7 func TearDown() | |
8 set nospell | |
9 call delete('Xtest.aff') | |
10 call delete('Xtest.dic') | |
11 call delete('Xtest.latin1.add') | |
12 call delete('Xtest.latin1.add.spl') | |
13 call delete('Xtest.latin1.spl') | |
14 call delete('Xtest.latin1.sug') | |
15 endfunc | |
6 | 16 |
7 func Test_wrap_search() | 17 func Test_wrap_search() |
8 new | 18 new |
9 call setline(1, ['The', '', 'A plong line with two zpelling mistakes', '', 'End']) | 19 call setline(1, ['The', '', 'A plong line with two zpelling mistakes', '', 'End']) |
10 set spell wrapscan | 20 set spell wrapscan |
224 | 234 |
225 "Test with SAL instead of SOFO items; test automatic reloading | 235 "Test with SAL instead of SOFO items; test automatic reloading |
226 func Test_zz_sal_and_addition() | 236 func Test_zz_sal_and_addition() |
227 set enc=latin1 | 237 set enc=latin1 |
228 set spellfile= | 238 set spellfile= |
239 call writefile(g:test_data_dic1, "Xtest.dic") | |
229 call writefile(g:test_data_aff_sal, "Xtest.aff") | 240 call writefile(g:test_data_aff_sal, "Xtest.aff") |
230 mkspell! Xtest Xtest | 241 mkspell! Xtest Xtest |
231 set spl=Xtest.latin1.spl spell | 242 set spl=Xtest.latin1.spl spell |
232 call assert_equal('kbltykk', soundfold('goobledygoook')) | 243 call assert_equal('kbltykk', soundfold('goobledygoook')) |
233 call assert_equal('kprnfn', soundfold('kóopërÿnôven')) | 244 call assert_equal('kprnfn', soundfold('kóopërÿnôven')) |