changeset 24323:7759374c4464 v8.2.2702

patch 8.2.2702: compiler completion test fails when more scripts are added Commit: https://github.com/vim/vim/commit/c17ba791a9edfa12926ce29f1eef39044bee5ab7 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Apr 3 19:07:05 2021 +0200 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.
author Bram Moolenaar <Bram@vim.org>
date Sat, 03 Apr 2021 19:15:04 +0200
parents 98e72bec3515
children 95ee4d33e491
files src/testdir/test_compiler.vim src/version.c
diffstat 2 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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()
--- a/src/version.c
+++ b/src/version.c
@@ -751,6 +751,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    2702,
+/**/
     2701,
 /**/
     2700,