diff options
author | Yegappan Lakshmanan <yegappan@yahoo.com> | 2021-06-13 21:52:48 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2021-06-13 21:52:48 +0200 |
commit | 2d6d718dde7163c971d37b8f4f1ed8f2d25de130 (patch) | |
tree | 6f2deb1e3ca27a26a719dd2dff28b583ba3714e7 /src/testdir/test_options.vim | |
parent | 5ffefbb35aba2448099314a9e09714d2f3b2b1bd (diff) | |
download | vim-git-2d6d718dde7163c971d37b8f4f1ed8f2d25de130.tar.gz |
patch 8.2.2994: various code is not fully testedv8.2.2994
Problem: Various code is not fully tested.
Solution: Add a few more tests. (Yegappan Lakshmanan, closes #8378)
Diffstat (limited to 'src/testdir/test_options.vim')
-rw-r--r-- | src/testdir/test_options.vim | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/testdir/test_options.vim b/src/testdir/test_options.vim index 2f64d1287..2d87920fa 100644 --- a/src/testdir/test_options.vim +++ b/src/testdir/test_options.vim @@ -1160,4 +1160,21 @@ func Test_cmdheight() set cmdheight& endfunc +" To specify a control character as a option value, '^' can be used +func Test_opt_control_char() + set wildchar=^v + call assert_equal("\<C-V>", nr2char(&wildchar)) + set wildcharm=^r + call assert_equal("\<C-R>", nr2char(&wildcharm)) + " Bug: This doesn't work for the 'cedit' and 'termwinkey' options + set wildchar& wildcharm& +endfunc + +" Test for the 'errorbells' option +func Test_opt_errorbells() + set errorbells + call assert_beeps('s/a1b2/x1y2/') + set noerrorbells +endfunc + " vim: shiftwidth=2 sts=2 expandtab |