mirror of
https://github.com/neovim/neovim.git
synced 2026-01-28 07:36:03 +00:00
Copy four files from Vim v8.2.1432.
Try to match Vim's test_alot.vim.
This marks Vim patch 8.2.0164 as ported:
vim-patch:8.2.0164: test_alot takes too long
Problem: Test_alot takes too long.
Solution: Run several tests individually.
842931cd7a
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
|