0
0
mirror of https://github.com/vim/vim.git synced 2025-10-06 05:44:14 -04:00

patch 9.0.0767: 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-10-15 20:52:26 +01:00
parent 0e9bdad545
commit c4860bdd28
14 changed files with 169 additions and 313 deletions

View File

@@ -26,14 +26,13 @@ func Test_termencoding_euc_jp()
\ 'scriptencoding utf-8',
\ 'exe "normal aE83: バッファを作成できないので、他のを使用します...\<Esc>"',
\ 'split Xeuc_jp.txt',
\ ], 'XTest_tenc_euc_jp')
\ ], 'XTest_tenc_euc_jp', 'D')
let buf = RunVimInTerminal('-S XTest_tenc_euc_jp', {'rows': 10})
call VerifyScreenDump(buf, 'Test_tenc_euc_jp_01', {})
" clean up
call StopVimInTerminal(buf)
call delete('Xeuc_jp.txt')
call delete('XTest_tenc_euc_jp')
endfunc
" vim: shiftwidth=2 sts=2 expandtab