1
0
forked from aniani/vim

patch 9.0.0625: too many delete() calls in tests

Problem:    Too many delete() calls in tests.
Solution:   Use deferred delete where possible.
This commit is contained in:
Bram Moolenaar
2022-09-29 21:01:57 +01:00
parent ac38ec7c7f
commit 7dd5a78b88
10 changed files with 47 additions and 80 deletions

View File

@@ -79,7 +79,7 @@ func Test_imactivatefunc_imstatusfunc_callback_no_breaks_foldopen()
call setline(1, ['{{{', 'abc', '}}}'])
%foldclose
END
call writefile(lines, 'Xscript')
call writefile(lines, 'Xscript', 'D')
let buf = RunVimInTerminal('-S Xscript', {})
call assert_notequal('abc', term_getline(buf, 2))
call term_sendkeys(buf, "/abc\n")
@@ -87,7 +87,6 @@ func Test_imactivatefunc_imstatusfunc_callback_no_breaks_foldopen()
" clean up
call StopVimInTerminal(buf)
call delete('Xscript')
endfunc
" Test for using an lmap in insert mode