mirror of
https://github.com/neovim/neovim.git
synced 2024-12-22 12:15:06 -07:00
vim-patch:8.1.0101: no test for getcmdwintype()
Problem: No test for getcmdwintype().
Solution: Add a test. (Dominique Pelle, closes vim/vim#3068)
81612b7a7d
This commit is contained in:
parent
14b148f0ad
commit
68cd18eb04
@ -461,6 +461,22 @@ func Test_getcmdtype()
|
||||
cunmap <F6>
|
||||
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()
|
||||
set verbosefile=Xlog
|
||||
echomsg 'foo'
|
||||
|
Loading…
Reference in New Issue
Block a user