comparison src/testdir/test_messages.vim @ 21765:08940efa6b4e v8.2.1432

patch 8.2.1432: various inconsistencies in test files Commit: https://github.com/vim/vim/commit/6d91bcb4d23b5c6a0be72c384beaf385e2d9d606 Author: Bram Moolenaar <Bram@vim.org> Date: Wed Aug 12 18:50:36 2020 +0200 patch 8.2.1432: various inconsistencies in test files Problem: Various inconsistencies in test files. Solution: Add modelines where they were missing. Use Check commands instead of silently skipping over tests. Adjust indents and comments. (Ken Takata, closes #6695)
author Bram Moolenaar <Bram@vim.org>
date Wed, 12 Aug 2020 19:00:08 +0200
parents 8bce783af0cb
children fb5546aa6817
comparison
equal deleted inserted replaced
21764:476b6faad407 21765:08940efa6b4e
92 call assert_match("function('<lambda>\\d*')", execute(':echoerr {-> 1234}')) 92 call assert_match("function('<lambda>\\d*')", execute(':echoerr {-> 1234}'))
93 call test_ignore_error('RESET') 93 call test_ignore_error('RESET')
94 endfunc 94 endfunc
95 95
96 func Test_mode_message_at_leaving_insert_by_ctrl_c() 96 func Test_mode_message_at_leaving_insert_by_ctrl_c()
97 if !has('terminal') || has('gui_running') 97 CheckFeature terminal
98 return 98 CheckNotGui
99 endif
100 99
101 " Set custom statusline built by user-defined function. 100 " Set custom statusline built by user-defined function.
102 let testfile = 'Xtest.vim' 101 let testfile = 'Xtest.vim'
103 let lines =<< trim END 102 let lines =<< trim END
104 func StatusLine() abort 103 func StatusLine() abort
124 exe buf . 'bwipe!' 123 exe buf . 'bwipe!'
125 call delete(testfile) 124 call delete(testfile)
126 endfunc 125 endfunc
127 126
128 func Test_mode_message_at_leaving_insert_with_esc_mapped() 127 func Test_mode_message_at_leaving_insert_with_esc_mapped()
129 if !has('terminal') || has('gui_running') 128 CheckFeature terminal
130 return 129 CheckNotGui
131 endif
132 130
133 " Set custom statusline built by user-defined function. 131 " Set custom statusline built by user-defined function.
134 let testfile = 'Xtest.vim' 132 let testfile = 'Xtest.vim'
135 let lines =<< trim END 133 let lines =<< trim END
136 set laststatus=2 134 set laststatus=2