diff options
| author | zeertzjq <zeertzjq@outlook.com> | 2022-11-06 15:52:42 +0800 |
|---|---|---|
| committer | zeertzjq <zeertzjq@outlook.com> | 2022-11-06 16:49:11 +0800 |
| commit | cac576322d4b22c0fa7ba7564ba7ca9656fc96b9 (patch) | |
| tree | f6f69d87957bfdd0e50f31f1cd595f0f31d68a12 /src/nvim/testdir/test_user_func.vim | |
| parent | c6af296cf8e381731f8a233cf89396e0dc7fd4ba (diff) | |
| download | rneovim-cac576322d4b22c0fa7ba7564ba7ca9656fc96b9.tar.gz rneovim-cac576322d4b22c0fa7ba7564ba7ca9656fc96b9.tar.bz2 rneovim-cac576322d4b22c0fa7ba7564ba7ca9656fc96b9.zip | |
vim-patch:8.2.1736: failure to compile a pattern not tested much
Problem: Failure to compile a pattern not tested much.
Solution: Add tests where a pattern fails to compile. (Yegappan Lakshmanan,
closes vim/vim#7004)
https://github.com/vim/vim/commit/531be47ac5522807b265c6287021a01c9b895ac9
Diffstat (limited to 'src/nvim/testdir/test_user_func.vim')
| -rw-r--r-- | src/nvim/testdir/test_user_func.vim | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_user_func.vim b/src/nvim/testdir/test_user_func.vim index 7aa21d7816..f13c082814 100644 --- a/src/nvim/testdir/test_user_func.vim +++ b/src/nvim/testdir/test_user_func.vim @@ -413,6 +413,9 @@ func Test_func_def_error() call writefile(['func foo#Bar()', 'return 1', 'endfunc'], 'Xscript') call assert_fails('source Xscript', 'E746:') call delete('Xscript') + + " Try to list functions using an invalid search pattern + call assert_fails('function /\%(/', 'E53:') endfunc " Test for deleting a function |