Mercurial > vim
comparison src/testdir/test_options.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 | 9099eb378758 |
children | 30bdd2e4a6f9 |
comparison
equal
deleted
inserted
replaced
21764:476b6faad407 | 21765:08940efa6b4e |
---|---|
134 | 134 |
135 set path& | 135 set path& |
136 endfunc | 136 endfunc |
137 | 137 |
138 func Test_signcolumn() | 138 func Test_signcolumn() |
139 if has('signs') | 139 CheckFeature signs |
140 call assert_equal("auto", &signcolumn) | 140 call assert_equal("auto", &signcolumn) |
141 set signcolumn=yes | 141 set signcolumn=yes |
142 set signcolumn=no | 142 set signcolumn=no |
143 call assert_fails('set signcolumn=nope') | 143 call assert_fails('set signcolumn=nope') |
144 endif | |
145 endfunc | 144 endfunc |
146 | 145 |
147 func Test_filetype_valid() | 146 func Test_filetype_valid() |
148 set ft=valid_name | 147 set ft=valid_name |
149 call assert_equal("valid_name", &filetype) | 148 call assert_equal("valid_name", &filetype) |
160 exe "set ft=trunc\x00name" | 159 exe "set ft=trunc\x00name" |
161 call assert_equal("trunc", &filetype) | 160 call assert_equal("trunc", &filetype) |
162 endfunc | 161 endfunc |
163 | 162 |
164 func Test_syntax_valid() | 163 func Test_syntax_valid() |
165 if !has('syntax') | 164 CheckFeature syntax |
166 return | |
167 endif | |
168 set syn=valid_name | 165 set syn=valid_name |
169 call assert_equal("valid_name", &syntax) | 166 call assert_equal("valid_name", &syntax) |
170 set syn=valid-name | 167 set syn=valid-name |
171 call assert_equal("valid-name", &syntax) | 168 call assert_equal("valid-name", &syntax) |
172 | 169 |
180 exe "set syn=trunc\x00name" | 177 exe "set syn=trunc\x00name" |
181 call assert_equal("trunc", &syntax) | 178 call assert_equal("trunc", &syntax) |
182 endfunc | 179 endfunc |
183 | 180 |
184 func Test_keymap_valid() | 181 func Test_keymap_valid() |
185 if !has('keymap') | 182 CheckFeature keymap |
186 return | |
187 endif | |
188 call assert_fails(":set kmp=valid_name", "E544:") | 183 call assert_fails(":set kmp=valid_name", "E544:") |
189 call assert_fails(":set kmp=valid_name", "valid_name") | 184 call assert_fails(":set kmp=valid_name", "valid_name") |
190 call assert_fails(":set kmp=valid-name", "E544:") | 185 call assert_fails(":set kmp=valid-name", "E544:") |
191 call assert_fails(":set kmp=valid-name", "valid-name") | 186 call assert_fails(":set kmp=valid-name", "valid-name") |
192 | 187 |