1
0
forked from aniani/vim

patch 8.2.2643: various code not covered by tests

Problem:    Various code not covered by tests.
Solution:   Add a few more test. (Yegappan Lakshmanan, closes #7995)
This commit is contained in:
Bram Moolenaar
2021-03-22 19:37:06 +01:00
parent e98f60a591
commit 1f448d906b
6 changed files with 83 additions and 1 deletions

View File

@@ -1431,7 +1431,7 @@ func Test_input_func()
call assert_equal('item1 item2 item3', c)
" Test for using special characters as default input
call feedkeys(":let c = input('name? ', \"x\<BS>y\")\<CR>\<CR>", 'xt')
call feedkeys(":let c = input('name? ', \"x\\<BS>y\")\<CR>\<CR>", 'xt')
call assert_equal('y', c)
" Test for using <CR> as default input