From 53cceda52da3f640f883479693267b45c9237107 Mon Sep 17 00:00:00 2001 From: Jan Edmund Lazo Date: Sat, 3 Apr 2021 20:29:34 -0400 Subject: [PATCH] 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. https://github.com/vim/vim/commit/c17ba791a9edfa12926ce29f1eef39044bee5ab7 --- src/nvim/testdir/test_compiler.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/nvim/testdir/test_compiler.vim b/src/nvim/testdir/test_compiler.vim index d361205baa..c3de7d0050 100644 --- a/src/nvim/testdir/test_compiler.vim +++ b/src/nvim/testdir/test_compiler.vim @@ -60,10 +60,10 @@ func Test_compiler_completion() call assert_match('^"compiler ' .. clist .. '$', @:) call feedkeys(":compiler p\\\"\", '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\\\"\", '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()