summaryrefslogtreecommitdiff
path: root/src/testdir/test_mksession.vim
diff options
context:
space:
mode:
authorYegappan Lakshmanan <yegappan@yahoo.com>2021-06-12 13:46:41 +0200
committerBram Moolenaar <Bram@vim.org>2021-06-12 13:46:41 +0200
commit5958549760652c173b703613b9cbf09b25a4eddb (patch)
tree5acca6c4929b41affd9d7aaa2eadb8a65472ebcc /src/testdir/test_mksession.vim
parent744aecf8777e86fac6d30f072e90e2de353b8ea1 (diff)
downloadvim-git-5958549760652c173b703613b9cbf09b25a4eddb.tar.gz
patch 8.2.2979: not all options code is covered by testsv8.2.2979
Problem: Not all options code is covered by tests. Solution: Add more tests for options. (Yegappan Lakshmanan, closes #8369)
Diffstat (limited to 'src/testdir/test_mksession.vim')
-rw-r--r--src/testdir/test_mksession.vim13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/testdir/test_mksession.vim b/src/testdir/test_mksession.vim
index 66e6e292a..a0a2cb461 100644
--- a/src/testdir/test_mksession.vim
+++ b/src/testdir/test_mksession.vim
@@ -1019,6 +1019,19 @@ func Test_mkvimrc()
endfor
call s:ClearMappings()
+
+ " the 'pastetoggle', 'wildchar' and 'wildcharm' option values should be
+ " stored as key names in the vimrc file
+ set pastetoggle=<F5>
+ set wildchar=<F6>
+ set wildcharm=<F7>
+ call assert_fails('mkvimrc Xtestvimrc')
+ mkvimrc! Xtestvimrc
+ call assert_notequal(-1, index(readfile('Xtestvimrc'), 'set pastetoggle=<F5>'))
+ call assert_notequal(-1, index(readfile('Xtestvimrc'), 'set wildchar=<F6>'))
+ call assert_notequal(-1, index(readfile('Xtestvimrc'), 'set wildcharm=<F7>'))
+ set pastetoggle& wildchar& wildcharm&
+
call delete('Xtestvimrc')
endfunc