aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2018-01-16 00:03:38 +0100
committerJustin M. Keyes <justinkz@gmail.com>2018-01-16 00:04:13 +0100
commit682d5ff8e68ea525ad16ca254890b0b46d631ee9 (patch)
tree86d001eeffd9c1e8bc5f6e70e7d527422b1f00d4 /src
parent34cc04d753de4167bdcef0302a5d8079f83b9493 (diff)
downloadrneovim-682d5ff8e68ea525ad16ca254890b0b46d631ee9.tar.gz
rneovim-682d5ff8e68ea525ad16ca254890b0b46d631ee9.tar.bz2
rneovim-682d5ff8e68ea525ad16ca254890b0b46d631ee9.zip
vim-patch:8.0.0792: spell test leaves files behind
Problem: Spell test leaves files behind. Solution: Delete the files. https://github.com/vim/vim/commit/1a0f2005002a9993ba7313d1978fa2043314f8b8
Diffstat (limited to 'src')
-rw-r--r--src/nvim/testdir/test_spell.vim11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_spell.vim b/src/nvim/testdir/test_spell.vim
index 83da2a0beb..e4c236c968 100644
--- a/src/nvim/testdir/test_spell.vim
+++ b/src/nvim/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