aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2021-04-03 20:29:34 -0400
committerJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2021-04-03 20:31:17 -0400
commit53cceda52da3f640f883479693267b45c9237107 (patch)
treed496357aa549bb5fd4e15fbc7bd8511e224ec99b
parentffef1519cadae56d67e32b0aa5b4fd36e51d3cac (diff)
downloadrneovim-53cceda52da3f640f883479693267b45c9237107.tar.gz
rneovim-53cceda52da3f640f883479693267b45c9237107.tar.bz2
rneovim-53cceda52da3f640f883479693267b45c9237107.zip
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
-rw-r--r--src/nvim/testdir/test_compiler.vim4
1 files 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\<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()