comparison src/testdir/test_digraph.vim @ 19581:848dc460adf0 v8.2.0347

patch 8.2.0347: various code not covered by tests Commit: https://github.com/vim/vim/commit/91ffc8a5f5c7b1c6979b3352a12ed779d11173a9 Author: Bram Moolenaar <Bram@vim.org> Date: Mon Mar 2 20:54:22 2020 +0100 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 https://github.com/vim/vim/issues/5720)
author Bram Moolenaar <Bram@vim.org>
date Mon, 02 Mar 2020 21:00:04 +0100
parents 2ef19eed524a
children 2c4d9ca33769
comparison
equal deleted inserted replaced
19580:e84b346be7f2 19581:848dc460adf0
449 bw! 449 bw!
450 endfunc 450 endfunc
451 451
452 func Test_digraph_cmndline() 452 func Test_digraph_cmndline()
453 " Create digraph on commandline 453 " Create digraph on commandline
454 " This is a hack, to let Vim create the digraph in commandline mode 454 call feedkeys(":\"\<c-k>Eu\<cr>", 'xt')
455 let s = '' 455 call assert_equal('"€', @:)
456 exe "sil! norm! :let s.='\<c-k>Eu'\<cr>" 456
457 call assert_equal("€", s) 457 " Canceling a CTRL-K on the cmdline
458 call feedkeys(":\"a\<c-k>\<esc>b\<cr>", 'xt')
459 call assert_equal('"ab', @:)
458 endfunc 460 endfunc
459 461
460 func Test_show_digraph() 462 func Test_show_digraph()
461 new 463 new
462 call Put_Dig("e=") 464 call Put_Dig("e=")