0
0
mirror of https://github.com/vim/vim.git synced 2025-11-15 23:14:06 -05:00

patch 8.1.0101: no test for getcmdwintype()

Problem:    No test for getcmdwintype().
Solution:   Add a test. (Dominique Pelle, closes #3068)
This commit is contained in:
Bram Moolenaar
2018-06-23 14:55:03 +02:00
parent 6dccc962f3
commit 81612b7a7d
2 changed files with 18 additions and 0 deletions

View File

@@ -511,6 +511,22 @@ func Test_getcmdtype()
cunmap <F6> cunmap <F6>
endfunc endfunc
func Test_getcmdwintype()
call feedkeys("q/:let a = getcmdwintype()\<CR>:q\<CR>", 'x!')
call assert_equal('/', a)
call feedkeys("q?:let a = getcmdwintype()\<CR>:q\<CR>", 'x!')
call assert_equal('?', a)
call feedkeys("q::let a = getcmdwintype()\<CR>:q\<CR>", 'x!')
call assert_equal(':', a)
call feedkeys(":\<C-F>:let a = getcmdwintype()\<CR>:q\<CR>", 'x!')
call assert_equal(':', a)
call assert_equal('', getcmdwintype())
endfunc
func Test_verbosefile() func Test_verbosefile()
set verbosefile=Xlog set verbosefile=Xlog
echomsg 'foo' echomsg 'foo'

View File

@@ -761,6 +761,8 @@ static char *(features[]) =
static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
101,
/**/ /**/
100, 100,
/**/ /**/