Mercurial > vim
changeset 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 | 2682017d9bb9 |
children | 9cdf21a3d0fd |
files | src/testdir/test_spell.vim src/version.c |
diffstat | 2 files changed, 13 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/testdir/test_spell.vim +++ b/src/testdir/test_spell.vim @@ -4,6 +4,16 @@ if !has('spell') finish 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() new call setline(1, ['The', '', 'A plong line with two zpelling mistakes', '', 'End']) @@ -226,6 +236,7 @@ endfunc func Test_zz_sal_and_addition() set enc=latin1 set spellfile= + call writefile(g:test_data_dic1, "Xtest.dic") call writefile(g:test_data_aff_sal, "Xtest.aff") mkspell! Xtest Xtest set spl=Xtest.latin1.spl spell