comparison src/testdir/test_listchars.vim @ 30580:f08ed0738f7a v9.0.0625

patch 9.0.0625: too many delete() calls in tests Commit: https://github.com/vim/vim/commit/7dd5a78b88af7734bdbf236fdfafb49f27a0ca2e Author: Bram Moolenaar <Bram@vim.org> Date: Thu Sep 29 21:01:57 2022 +0100 patch 9.0.0625: too many delete() calls in tests Problem: Too many delete() calls in tests. Solution: Use deferred delete where possible.
author Bram Moolenaar <Bram@vim.org>
date Thu, 29 Sep 2022 22:15:04 +0200
parents 9b292596a332
children dbec60b8c253
comparison
equal deleted inserted replaced
30579:e298ce7862f7 30580:f08ed0738f7a
662 call setline(1, ['aaa', '', 'a', 'aaaaaa']) 662 call setline(1, ['aaa', '', 'a', 'aaaaaa'])
663 vsplit 663 vsplit
664 vsplit 664 vsplit
665 windo set signcolumn=yes foldcolumn=1 winminwidth=0 nowrap list listchars=extends:>,precedes:< 665 windo set signcolumn=yes foldcolumn=1 winminwidth=0 nowrap list listchars=extends:>,precedes:<
666 END 666 END
667 call writefile(lines, 'XTest_listchars') 667 call writefile(lines, 'XTest_listchars', 'D')
668 668
669 let buf = RunVimInTerminal('-S XTest_listchars', {'rows': 10, 'cols': 60}) 669 let buf = RunVimInTerminal('-S XTest_listchars', {'rows': 10, 'cols': 60})
670 670
671 call term_sendkeys(buf, "13\<C-W>>") 671 call term_sendkeys(buf, "13\<C-W>>")
672 call VerifyScreenDump(buf, 'Test_listchars_01', {}) 672 call VerifyScreenDump(buf, 'Test_listchars_01', {})
685 call term_sendkeys(buf, "4\<C-W><") 685 call term_sendkeys(buf, "4\<C-W><")
686 call VerifyScreenDump(buf, 'Test_listchars_07', {}) 686 call VerifyScreenDump(buf, 'Test_listchars_07', {})
687 687
688 " clean up 688 " clean up
689 call StopVimInTerminal(buf) 689 call StopVimInTerminal(buf)
690 call delete('XTest_listchars')
691 endfunc 690 endfunc
692 691
693 692
694 " vim: shiftwidth=2 sts=2 expandtab 693 " vim: shiftwidth=2 sts=2 expandtab