0
0
mirror of https://github.com/vim/vim.git synced 2025-07-26 11:04:33 -04:00

patch 8.2.2702: compiler completion test fails when more scripts are added

Problem:    Compiler completion test fails when more scripts are added.
Solution:   Add a more generic pattern.
This commit is contained in:
Bram Moolenaar 2021-04-03 19:07:05 +02:00
parent 26f201345d
commit c17ba791a9
2 changed files with 4 additions and 2 deletions

View File

@ -69,10 +69,10 @@ func Test_compiler_completion()
call assert_match('^"compiler ' .. clist .. '$', @:)
call feedkeys(":compiler p\<C-A>\<C-B>\"\<CR>", 'tx')
call assert_equal('"compiler pbx perl php pylint pyunit', @:)
call assert_match('"compiler pbx perl\( p[a-z]\+\)\+ pylint pyunit', @:)
call feedkeys(":compiler! p\<C-A>\<C-B>\"\<CR>", 'tx')
call assert_equal('"compiler! pbx perl php pylint pyunit', @:)
call assert_match('"compiler! pbx perl\( p[a-z]\+\)\+ pylint pyunit', @:)
endfunc
func Test_compiler_error()

View File

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