Mercurial > vim
diff 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 |
line wrap: on
line diff
--- a/src/testdir/test_options.vim +++ b/src/testdir/test_options.vim @@ -136,12 +136,11 @@ func Test_path_keep_commas() endfunc func Test_signcolumn() - if has('signs') - call assert_equal("auto", &signcolumn) - set signcolumn=yes - set signcolumn=no - call assert_fails('set signcolumn=nope') - endif + CheckFeature signs + call assert_equal("auto", &signcolumn) + set signcolumn=yes + set signcolumn=no + call assert_fails('set signcolumn=nope') endfunc func Test_filetype_valid() @@ -162,9 +161,7 @@ func Test_filetype_valid() endfunc func Test_syntax_valid() - if !has('syntax') - return - endif + CheckFeature syntax set syn=valid_name call assert_equal("valid_name", &syntax) set syn=valid-name @@ -182,9 +179,7 @@ func Test_syntax_valid() endfunc func Test_keymap_valid() - if !has('keymap') - return - endif + CheckFeature keymap call assert_fails(":set kmp=valid_name", "E544:") call assert_fails(":set kmp=valid_name", "valid_name") call assert_fails(":set kmp=valid-name", "E544:")