# HG changeset patch # User Bram Moolenaar # Date 1559815207 -7200 # Node ID 5f3e960ce76dcbdfa12ea2009dad116e673fb6d0 # Parent acc4e1506662b8f30df999fe85ec5fb4c77fb6f4 patch 8.1.1472: add_termcap_entry() is not tested commit https://github.com/vim/vim/commit/de6dbb452ad677abab05a84bc48b968bc5315fa4 Author: Bram Moolenaar 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. diff --git a/src/testdir/test_termcodes.vim b/src/testdir/test_termcodes.vim --- 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 diff --git a/src/version.c b/src/version.c --- 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,