changeset 16942:5f3e960ce76d v8.1.1472

patch 8.1.1472: add_termcap_entry() is not tested commit https://github.com/vim/vim/commit/de6dbb452ad677abab05a84bc48b968bc5315fa4 Author: Bram Moolenaar <Bram@vim.org> Date: Thu Jun 6 11:59:18 2019 +0200 patch 8.1.1472: add_termcap_entry() is not tested Problem: Add_termcap_entry() is not tested. Solution: Add a simple test.
author Bram Moolenaar <Bram@vim.org>
date Thu, 06 Jun 2019 12:00:07 +0200
parents acc4e1506662
children 2f0579d6b1e5
files src/testdir/test_termcodes.vim src/version.c
diffstat 2 files changed, 9 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/testdir/test_termcodes.vim
+++ b/src/testdir/test_termcodes.vim
@@ -626,7 +626,6 @@ func Test_xterm_mouse_click_in_fold_colu
 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
--- a/src/version.c
+++ b/src/version.c
@@ -768,6 +768,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    1472,
+/**/
     1471,
 /**/
     1470,