1
0
forked from aniani/vim

patch 8.0.0792: spell test leaves files behind

Problem:    Spell test leaves files behind.
Solution:   Delete the files.
This commit is contained in:
Bram Moolenaar
2017-07-28 15:38:10 +02:00
parent b41bf8e6b4
commit 1a0f200500
2 changed files with 13 additions and 0 deletions

View File

@@ -4,6 +4,16 @@ if !has('spell')
finish finish
endif endif
func TearDown()
set nospell
call delete('Xtest.aff')
call delete('Xtest.dic')
call delete('Xtest.latin1.add')
call delete('Xtest.latin1.add.spl')
call delete('Xtest.latin1.spl')
call delete('Xtest.latin1.sug')
endfunc
func Test_wrap_search() func Test_wrap_search()
new new
call setline(1, ['The', '', 'A plong line with two zpelling mistakes', '', 'End']) call setline(1, ['The', '', 'A plong line with two zpelling mistakes', '', 'End'])
@@ -226,6 +236,7 @@ endfunc
func Test_zz_sal_and_addition() func Test_zz_sal_and_addition()
set enc=latin1 set enc=latin1
set spellfile= set spellfile=
call writefile(g:test_data_dic1, "Xtest.dic")
call writefile(g:test_data_aff_sal, "Xtest.aff") call writefile(g:test_data_aff_sal, "Xtest.aff")
mkspell! Xtest Xtest mkspell! Xtest Xtest
set spl=Xtest.latin1.spl spell set spl=Xtest.latin1.spl spell

View File

@@ -769,6 +769,8 @@ static char *(features[]) =
static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
792,
/**/ /**/
791, 791,
/**/ /**/