]> granicus.if.org Git - vim/commitdiff
patch 8.2.2702: compiler completion test fails when more scripts are added v8.2.2702
authorBram Moolenaar <Bram@vim.org>
Sat, 3 Apr 2021 17:07:05 +0000 (19:07 +0200)
committerBram Moolenaar <Bram@vim.org>
Sat, 3 Apr 2021 17:07:05 +0000 (19:07 +0200)
Problem:    Compiler completion test fails when more scripts are added.
Solution:   Add a more generic pattern.

src/testdir/test_compiler.vim
src/version.c

index 06a37c9fc564bd5c8bc564137bb44a81ac7a90b9..ede307fbfc27a70375bf81dccf2919921020bc6b 100644 (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()
index def02a5e10a3c7e98838b8c222bd88d4c9feff0b..5a5f73fb9c9f2d764b2b0c07e2a8cf75362353a7 100644 (file)
@@ -750,6 +750,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    2702,
 /**/
     2701,
 /**/