comparison src/testdir/test_tagjump.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 6a4806e326dd
children ff21e2962490
comparison
equal deleted inserted replaced
21764:476b6faad407 21765:08940efa6b4e
190 endfunction 190 endfunction
191 191
192 " Test for jumping to a tag with 'hidden' set, with symbolic link in path of 192 " Test for jumping to a tag with 'hidden' set, with symbolic link in path of
193 " tag. This only works for Unix, because of the symbolic link. 193 " tag. This only works for Unix, because of the symbolic link.
194 func Test_tag_symbolic() 194 func Test_tag_symbolic()
195 if !has('unix') 195 CheckUnix
196 return 196
197 endif
198 set hidden 197 set hidden
199 call delete("Xtest.dir", "rf") 198 call delete("Xtest.dir", "rf")
200 call system("ln -s . Xtest.dir") 199 call system("ln -s . Xtest.dir")
201 " Create a tags file with the current directory name inserted. 200 " Create a tags file with the current directory name inserted.
202 call writefile([ 201 call writefile([
228 227
229 " Tests for tag search with !_TAG_FILE_ENCODING. 228 " Tests for tag search with !_TAG_FILE_ENCODING.
230 " Depends on the test83-tags2 and test83-tags3 files. 229 " Depends on the test83-tags2 and test83-tags3 files.
231 func Test_tag_file_encoding() 230 func Test_tag_file_encoding()
232 if has('vms') 231 if has('vms')
233 return 232 throw 'Skipped: does not work on VMS'
234 endif 233 endif
235 234
236 if !has('iconv') || iconv("\x82\x60", "cp932", "utf-8") != "\uff21" 235 if !has('iconv') || iconv("\x82\x60", "cp932", "utf-8") != "\uff21"
237 return 236 throw 'Skipped: iconv does not work'
238 endif 237 endif
239 238
240 let save_enc = &encoding 239 let save_enc = &encoding
241 set encoding=utf8 240 set encoding=utf8
242 241
281 call delete('Xtags1') 280 call delete('Xtags1')
282 endfunc 281 endfunc
283 282
284 " Test for emacs-style tags file (TAGS) 283 " Test for emacs-style tags file (TAGS)
285 func Test_tagjump_etags() 284 func Test_tagjump_etags()
286 if !has('emacs_tags') 285 CheckFeature emacs_tags
287 return 286
288 endif
289 call writefile([ 287 call writefile([
290 \ "void foo() {}", 288 \ "void foo() {}",
291 \ "int main(int argc, char **argv)", 289 \ "int main(int argc, char **argv)",
292 \ "{", 290 \ "{",
293 \ "\tfoo();", 291 \ "\tfoo();",