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:
@@ -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'
|
||||||
|
|||||||
@@ -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,
|
||||||
/**/
|
/**/
|
||||||
|
|||||||
Reference in New Issue
Block a user