forked from aniani/vim
patch 9.0.0768: too many delete() calls in tests
Problem: Too many delete() calls in tests. Solution: Use deferred delete where possible.
This commit is contained in:
@@ -1274,7 +1274,7 @@ func Test_visual_block_with_virtualedit()
|
||||
set virtualedit=block
|
||||
normal G
|
||||
END
|
||||
call writefile(lines, 'XTest_block')
|
||||
call writefile(lines, 'XTest_block', 'D')
|
||||
|
||||
let buf = RunVimInTerminal('-S XTest_block', {'rows': 8, 'cols': 50})
|
||||
call term_sendkeys(buf, "\<C-V>gg$")
|
||||
@@ -1286,7 +1286,6 @@ func Test_visual_block_with_virtualedit()
|
||||
" clean up
|
||||
call term_sendkeys(buf, "\<Esc>")
|
||||
call StopVimInTerminal(buf)
|
||||
call delete('XTest_block')
|
||||
endfunc
|
||||
|
||||
func Test_visual_block_ctrl_w_f()
|
||||
@@ -1331,11 +1330,10 @@ func Test_visual_reselect_with_count()
|
||||
|
||||
:
|
||||
END
|
||||
call writefile(lines, 'XvisualReselect')
|
||||
call writefile(lines, 'XvisualReselect', 'D')
|
||||
source XvisualReselect
|
||||
|
||||
bwipe!
|
||||
call delete('XvisualReselect')
|
||||
endfunc
|
||||
|
||||
func Test_visual_block_insert_round_off()
|
||||
|
||||
Reference in New Issue
Block a user