summaryrefslogtreecommitdiffstats
path: root/src/testdir/test_compiler.vim
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2021-04-03 19:07:05 +0200
committerBram Moolenaar <Bram@vim.org>2021-04-03 19:07:05 +0200
commitc17ba791a9edfa12926ce29f1eef39044bee5ab7 (patch)
treef32f294adfd9b9cc06bd158cb3764633c659c46d /src/testdir/test_compiler.vim
parent26f201345dadef2a048db5aea804f6c1b54f1a0b (diff)
patch 8.2.2702: compiler completion test fails when more scripts are addedv8.2.2702
Problem: Compiler completion test fails when more scripts are added. Solution: Add a more generic pattern.
Diffstat (limited to 'src/testdir/test_compiler.vim')
-rw-r--r--src/testdir/test_compiler.vim4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/testdir/test_compiler.vim b/src/testdir/test_compiler.vim
index 06a37c9fc5..ede307fbfc 100644
--- a/src/testdir/test_compiler.vim
+++ b/src/testdir/test_compiler.vim
@@ -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()