forked from aniani/vim
patch 8.2.0347: various code not covered by tests
Problem: Various code not covered by tests. Solution: Add more test coverage. (Yegappan Lakshmanan, closes #5720)
This commit is contained in:
@@ -451,10 +451,12 @@ endfunc
|
||||
|
||||
func Test_digraph_cmndline()
|
||||
" Create digraph on commandline
|
||||
" This is a hack, to let Vim create the digraph in commandline mode
|
||||
let s = ''
|
||||
exe "sil! norm! :let s.='\<c-k>Eu'\<cr>"
|
||||
call assert_equal("€", s)
|
||||
call feedkeys(":\"\<c-k>Eu\<cr>", 'xt')
|
||||
call assert_equal('"€', @:)
|
||||
|
||||
" Canceling a CTRL-K on the cmdline
|
||||
call feedkeys(":\"a\<c-k>\<esc>b\<cr>", 'xt')
|
||||
call assert_equal('"ab', @:)
|
||||
endfunc
|
||||
|
||||
func Test_show_digraph()
|
||||
|
||||
Reference in New Issue
Block a user