vim-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.
c17ba791a9
This commit is contained in:
Jan Edmund Lazo 2021-04-03 20:29:34 -04:00
parent ffef1519ca
commit 53cceda52d
No known key found for this signature in database
GPG Key ID: 64915E6E9F735B15

View File

@ -60,10 +60,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()