]> granicus.if.org Git - vim/commitdiff
patch 8.2.0575: :digraph! not tested v8.2.0575
authorBram Moolenaar <Bram@vim.org>
Mon, 13 Apr 2020 17:46:43 +0000 (19:46 +0200)
committerBram Moolenaar <Bram@vim.org>
Mon, 13 Apr 2020 17:46:43 +0000 (19:46 +0200)
Problem:    :digraph! not tested.
Solution:   Add a test. (Dominique Pelle, closes #5925)

src/testdir/test_digraph.vim
src/version.c

index 3e3dfa89aeb1ab1f368addb44e1128e8822de581..9e7d6f4bbc604cf5053bd93244612edd2de169fa 100644 (file)
@@ -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
 
index 3bb947911a2fe4e4d69a0376b2f9de22d8e55952..0705e75d6da361019286ac6fe0388214acdda785 100644 (file)
@@ -746,6 +746,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    575,
 /**/
     574,
 /**/