0
0
mirror of https://github.com/vim/vim.git synced 2025-09-24 03:44:06 -04:00

patch 7.4.1571

Problem:    No test for ":help".
Solution:   Add a test for what 7.4.1568 fixed. (Higashi Higashi)
This commit is contained in:
Bram Moolenaar
2016-03-15 16:35:39 +01:00
parent 426dd02195
commit 8e15ffcde7
3 changed files with 21 additions and 0 deletions

View File

@@ -9,6 +9,7 @@ source test_expand.vim
source test_feedkeys.vim source test_feedkeys.vim
source test_file_perm.vim source test_file_perm.vim
source test_glob2regpat.vim source test_glob2regpat.vim
source test_help_tagjump.vim
source test_join.vim source test_join.vim
source test_lispwords.vim source test_lispwords.vim
source test_menu.vim source test_menu.vim

View File

@@ -0,0 +1,18 @@
" Tests for :help! {subject}
func Test_help_tagjump()
help
call assert_equal("help", &filetype)
call assert_true(getline('.') =~ '\*help.txt\*')
helpclose
exec "help! ('textwidth'"
call assert_equal("help", &filetype)
call assert_true(getline('.') =~ "\\*'textwidth'\\*")
helpclose
exec "help! ('buflisted'),"
call assert_equal("help", &filetype)
call assert_true(getline('.') =~ "\\*'buflisted'\\*")
helpclose
endfunc

View File

@@ -743,6 +743,8 @@ static char *(features[]) =
static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
1571,
/**/ /**/
1570, 1570,
/**/ /**/