summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2020-04-13 19:46:43 +0200
committerBram Moolenaar <Bram@vim.org>2020-04-13 19:46:43 +0200
commite3242346cf1c2ff8b0315cb2cb98e731bfa952c0 (patch)
tree07991b15f690565cd396278a2c67d36519b1a1d3
parent352f554b854da1c45209bcb3db8ba943da1969f0 (diff)
patch 8.2.0575: :digraph! not testedv8.2.0575
Problem: :digraph! not tested. Solution: Add a test. (Dominique Pelle, closes #5925)
-rw-r--r--src/testdir/test_digraph.vim12
-rw-r--r--src/version.c2
2 files changed, 14 insertions, 0 deletions
diff --git a/src/testdir/test_digraph.vim b/src/testdir/test_digraph.vim
index 3e3dfa89ae..9e7d6f4bbc 100644
--- a/src/testdir/test_digraph.vim
+++ b/src/testdir/test_digraph.vim
@@ -434,6 +434,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
diff --git a/src/version.c b/src/version.c
index 3bb947911a..0705e75d6d 100644
--- a/src/version.c
+++ b/src/version.c
@@ -747,6 +747,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 575,
+/**/
574,
/**/
573,