comparison src/testdir/test_arglist.vim @ 20625:116c7bd5e980 v8.2.0866

patch 8.2.0866: not enough tests for buffer writing Commit: https://github.com/vim/vim/commit/494e9069cb32620f7688a7cb128a3feff827639e Author: Bram Moolenaar <Bram@vim.org> Date: Sun May 31 21:28:02 2020 +0200 patch 8.2.0866: not enough tests for buffer writing Problem: Not enough tests for buffer writing. Solution: Add more tests. Use CheckRunVimInTerminal in more places. (Yegappan Lakshmanan, closes #6167)
author Bram Moolenaar <Bram@vim.org>
date Sun, 31 May 2020 21:30:03 +0200
parents c087099e9163
children 7acceb76669f
comparison
equal deleted inserted replaced
20624:f782c48d548a 20625:116c7bd5e980
1 " Test argument list commands 1 " Test argument list commands
2 2
3 source check.vim
3 source shared.vim 4 source shared.vim
4 source term_util.vim 5 source term_util.vim
5 6
6 func Test_argidx() 7 func Test_argidx()
7 args a b c 8 args a b c
509 bwipe Xa.c Xb.c Xc.c 510 bwipe Xa.c Xb.c Xc.c
510 endfunc 511 endfunc
511 512
512 " Test for quiting Vim with unedited files in the argument list 513 " Test for quiting Vim with unedited files in the argument list
513 func Test_quit_with_arglist() 514 func Test_quit_with_arglist()
514 if !CanRunVimInTerminal() 515 CheckRunVimInTerminal
515 throw 'Skipped: cannot run vim in terminal'
516 endif
517 let buf = RunVimInTerminal('', {'rows': 6}) 516 let buf = RunVimInTerminal('', {'rows': 6})
518 call term_sendkeys(buf, ":set nomore\n") 517 call term_sendkeys(buf, ":set nomore\n")
519 call term_sendkeys(buf, ":args a b c\n") 518 call term_sendkeys(buf, ":args a b c\n")
520 call term_sendkeys(buf, ":quit\n") 519 call term_sendkeys(buf, ":quit\n")
521 call TermWait(buf) 520 call TermWait(buf)