summaryrefslogtreecommitdiff
path: root/src/testdir/test_set.vim
diff options
context:
space:
mode:
Diffstat (limited to 'src/testdir/test_set.vim')
-rw-r--r--src/testdir/test_set.vim27
1 files changed, 27 insertions, 0 deletions
diff --git a/src/testdir/test_set.vim b/src/testdir/test_set.vim
new file mode 100644
index 000000000..b98046384
--- /dev/null
+++ b/src/testdir/test_set.vim
@@ -0,0 +1,27 @@
+" 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