diff src/testdir/test_termcodes.vim @ 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 1c264ca8f2e8
children b2179cf1a0a5
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