Mercurial > vim
diff src/testdir/test_search.vim @ 26907:6f43253463cc v8.2.3982
patch 8.2.3982: some lines of code not covered by tests
Commit: https://github.com/vim/vim/commit/8bfa0eb863357c1013024233ebb2e95a0a848002
Author: Dominique Pelle <dominique.pelle@gmail.com>
Date: Sun Jan 2 16:16:33 2022 +0000
patch 8.2.3982: some lines of code not covered by tests
Problem: Some lines of code not covered by tests.
Solution: Add a few more test cases. (Dominique Pell?, closes https://github.com/vim/vim/issues/9453)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 02 Jan 2022 17:30:02 +0100 |
parents | d6d31972c76d |
children | d395fadbaf67 |
line wrap: on
line diff
--- a/src/testdir/test_search.vim +++ b/src/testdir/test_search.vim @@ -1682,6 +1682,8 @@ func Test_invalid_regexp() call assert_fails("call search('\\(')", 'E54:') call assert_fails("call search('\\)')", 'E55:') call assert_fails("call search('\\z\\(\\)')", 'E66:') + call assert_fails("call search('\\z2')", 'E67:') + call assert_fails("call search('\\zx')", 'E867:') call assert_fails("call search('\\%[ab')", 'E69:') call assert_fails("call search('\\%[]')", 'E70:') call assert_fails("call search('\\%9999999999999999999999999999v')", 'E951:')