mirror of
https://github.com/vim/vim.git
synced 2025-09-28 04:24:06 -04:00
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)
30 lines
553 B
VimL
30 lines
553 B
VimL
" Tests for the :set command
|
|
|
|
function Test_set_backslash()
|
|
let isk_save = &isk
|
|
|
|
set isk=a,b,c
|
|
set isk+=d
|
|
call assert_equal('a,b,c,d', &isk)
|
|
set isk+=\\,e
|
|
call assert_equal('a,b,c,d,\,e', &isk)
|
|
set isk-=e
|
|
call assert_equal('a,b,c,d,\', &isk)
|
|
set isk-=\\
|
|
call assert_equal('a,b,c,d', &isk)
|
|
|
|
let &isk = isk_save
|
|
endfunction
|
|
|
|
function Test_set_add()
|
|
let wig_save = &wig
|
|
|
|
set wildignore=*.png,
|
|
set wildignore+=*.jpg
|
|
call assert_equal('*.png,*.jpg', &wig)
|
|
|
|
let &wig = wig_save
|
|
endfunction
|
|
|
|
" vim: shiftwidth=2 sts=2 expandtab
|