Mercurial > vim
comparison src/testdir/test_options.vim @ 24914:1186160ecf57 v8.2.2994
patch 8.2.2994: various code is not fully tested
Commit: https://github.com/vim/vim/commit/2d6d718dde7163c971d37b8f4f1ed8f2d25de130
Author: Yegappan Lakshmanan <yegappan@yahoo.com>
Date: Sun Jun 13 21:52:48 2021 +0200
patch 8.2.2994: various code is not fully tested
Problem: Various code is not fully tested.
Solution: Add a few more tests. (Yegappan Lakshmanan, closes https://github.com/vim/vim/issues/8378)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 13 Jun 2021 22:00:04 +0200 |
parents | 02fa8d72e4e3 |
children | 82ae6fcd86c8 |
comparison
equal
deleted
inserted
replaced
24913:de12fb675362 | 24914:1186160ecf57 |
---|---|
1158 call assert_equal(1, winheight(0)) | 1158 call assert_equal(1, winheight(0)) |
1159 call assert_equal(ht - 1, &cmdheight) | 1159 call assert_equal(ht - 1, &cmdheight) |
1160 set cmdheight& | 1160 set cmdheight& |
1161 endfunc | 1161 endfunc |
1162 | 1162 |
1163 " To specify a control character as a option value, '^' can be used | |
1164 func Test_opt_control_char() | |
1165 set wildchar=^v | |
1166 call assert_equal("\<C-V>", nr2char(&wildchar)) | |
1167 set wildcharm=^r | |
1168 call assert_equal("\<C-R>", nr2char(&wildcharm)) | |
1169 " Bug: This doesn't work for the 'cedit' and 'termwinkey' options | |
1170 set wildchar& wildcharm& | |
1171 endfunc | |
1172 | |
1173 " Test for the 'errorbells' option | |
1174 func Test_opt_errorbells() | |
1175 set errorbells | |
1176 call assert_beeps('s/a1b2/x1y2/') | |
1177 set noerrorbells | |
1178 endfunc | |
1179 | |
1163 " vim: shiftwidth=2 sts=2 expandtab | 1180 " vim: shiftwidth=2 sts=2 expandtab |