Mercurial > vim
comparison src/testdir/test_startup.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 | 6209800492fc |
children | 0b29fe5943ae |
comparison
equal
deleted
inserted
replaced
20624:f782c48d548a | 20625:116c7bd5e980 |
---|---|
671 let out = system(GetVimCommand() . ' -es -X -V1 -c "echon ''hello''" -cq') | 671 let out = system(GetVimCommand() . ' -es -X -V1 -c "echon ''hello''" -cq') |
672 call assert_equal('hello', out) | 672 call assert_equal('hello', out) |
673 endfunc | 673 endfunc |
674 | 674 |
675 func Test_start_with_tabs() | 675 func Test_start_with_tabs() |
676 if !CanRunVimInTerminal() | 676 CheckRunVimInTerminal |
677 throw 'Skipped: cannot make screendumps' | |
678 endif | |
679 | 677 |
680 let buf = RunVimInTerminal('-p a b c', {}) | 678 let buf = RunVimInTerminal('-p a b c', {}) |
681 call VerifyScreenDump(buf, 'Test_start_with_tabs', {}) | 679 call VerifyScreenDump(buf, 'Test_start_with_tabs', {}) |
682 | 680 |
683 " clean up | 681 " clean up |
781 endif | 779 endif |
782 endfunc | 780 endfunc |
783 | 781 |
784 " Test for specifying a non-existing vimrc file using "-u" | 782 " Test for specifying a non-existing vimrc file using "-u" |
785 func Test_missing_vimrc() | 783 func Test_missing_vimrc() |
786 if !CanRunVimInTerminal() | 784 CheckRunVimInTerminal |
787 throw 'Skipped: cannot run vim in terminal' | |
788 endif | |
789 let after =<< trim [CODE] | 785 let after =<< trim [CODE] |
790 call assert_match('^E282:', v:errmsg) | 786 call assert_match('^E282:', v:errmsg) |
791 call writefile(v:errors, 'Xtestout') | 787 call writefile(v:errors, 'Xtestout') |
792 [CODE] | 788 [CODE] |
793 call writefile(after, 'Xafter') | 789 call writefile(after, 'Xafter') |