diff options
| author | zeertzjq <zeertzjq@outlook.com> | 2022-03-03 11:57:25 +0800 |
|---|---|---|
| committer | zeertzjq <zeertzjq@outlook.com> | 2022-03-03 13:23:08 +0800 |
| commit | 78bb8c4ee723f3204ad7aced2f101542e86eae46 (patch) | |
| tree | b050b85718c7e97369e22e163deaeafbeab93583 /src/nvim/testdir/test_set.vim | |
| parent | 5d6006f9bfc2f1f064adbcfa974da6976e867450 (diff) | |
| download | rneovim-78bb8c4ee723f3204ad7aced2f101542e86eae46.tar.gz rneovim-78bb8c4ee723f3204ad7aced2f101542e86eae46.tar.bz2 rneovim-78bb8c4ee723f3204ad7aced2f101542e86eae46.zip | |
test(old): add more missing test files and run more tests alone
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.
https://github.com/vim/vim/commit/842931cd7af37ea95e826b7a93a5d5587d18c9bb
Diffstat (limited to 'src/nvim/testdir/test_set.vim')
| -rw-r--r-- | src/nvim/testdir/test_set.vim | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_set.vim b/src/nvim/testdir/test_set.vim new file mode 100644 index 0000000000..2b1e9eeee0 --- /dev/null +++ b/src/nvim/testdir/test_set.vim @@ -0,0 +1,29 @@ +" 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 |