]> granicus.if.org Git - vim/commitdiff
patch 8.1.1472: add_termcap_entry() is not tested v8.1.1472
authorBram Moolenaar <Bram@vim.org>
Thu, 6 Jun 2019 09:59:18 +0000 (11:59 +0200)
committerBram Moolenaar <Bram@vim.org>
Thu, 6 Jun 2019 09:59:18 +0000 (11:59 +0200)
Problem:    Add_termcap_entry() is not tested.
Solution:   Add a simple test.

src/testdir/test_termcodes.vim
src/version.c

index d182761dddbb08f6cd04a558f5996332ac874c8a..d602ee5d5f0cef3be3354500ad6fd9a538d34c17 100644 (file)
@@ -626,7 +626,6 @@ func Test_xterm_mouse_click_in_fold_columns()
 endfunc
 
 " This only checks if the sequence is recognized.
-" TODO: check that the values were parsed properly
 func Test_term_rgb_response()
   set t_RF=x
   set t_RB=y
@@ -712,3 +711,10 @@ func Test_xx_term_style_response()
 
   set t_RV=
 endfunc
+
+func Test_get_termcode()
+  let k1 = &t_k1
+  set t_k1=
+  set t_k1&
+  call assert_equal(k1, &t_k1)
+endfunc
index 366e56b748f706fda230d7d767522343ae195edb..ca2e17498e8a1c7cb880a9cb4bc6d61ef7455479 100644 (file)
@@ -767,6 +767,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1472,
 /**/
     1471,
 /**/