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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user