0
0
mirror of https://github.com/vim/vim.git synced 2025-09-28 04:24:06 -04:00
Files
vim/src/testdir/test_set.vim
Bram Moolenaar 6d91bcb4d2 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)
2020-08-12 18:50:36 +02:00

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