mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
vim-patch:8.2.0575: :digraph! not tested
Problem: :digraph! not tested.
Solution: Add a test. (Dominique Pelle, closes vim/vim#5925)
e3242346cf
This commit is contained in:
parent
05fd647770
commit
5f7384bf42
@ -433,6 +433,18 @@ func Test_digraphs_output()
|
||||
call assert_equal('Z% Ж 1046', matchstr(out, '\C\<Z%\D*1046\>'))
|
||||
call assert_equal('u- ū 363', matchstr(out, '\C\<u-\D*363\>'))
|
||||
call assert_equal('SH ^A 1', matchstr(out, '\C\<SH\D*1\>'))
|
||||
call assert_notmatch('Latin supplement', out)
|
||||
|
||||
let out_bang_without_custom = execute(':digraph!')
|
||||
digraph lt 60
|
||||
let out_bang_with_custom = execute(':digraph!')
|
||||
call assert_notmatch('lt', out_bang_without_custom)
|
||||
call assert_match("^\n"
|
||||
\ .. "NU ^@ 10 .*\n"
|
||||
\ .. "Latin supplement\n"
|
||||
\ .. "!I ¡ 161 .*\n"
|
||||
\ .. ".*\n"
|
||||
\ .. 'Custom\n.*\<lt < 60\>', out_bang_with_custom)
|
||||
bw!
|
||||
endfunc
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user