Mercurial > vim
changeset 15486:b143545e3354 v8.1.0751
patch 8.1.0751: some regexp errors are not tested
commit https://github.com/vim/vim/commit/6057ed4720eaa1d546bbd234e6957ec0163e0e9b
Author: Bram Moolenaar <Bram@vim.org>
Date: Mon Jan 14 23:19:29 2019 +0100
patch 8.1.0751: some regexp errors are not tested
Problem: Some regexp errors are not tested.
Solution: Add a test function.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Mon, 14 Jan 2019 23:30:05 +0100 |
parents | d4b1701c77d2 |
children | aeccfcc2164a |
files | src/testdir/test_regexp_latin.vim src/version.c |
diffstat | 2 files changed, 14 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/testdir/test_regexp_latin.vim +++ b/src/testdir/test_regexp_latin.vim @@ -72,3 +72,15 @@ func Test_backref() call assert_fails('call search("\\%#=2\\(e\\1\\)")', 'E65:') bwipe! endfunc + +func Test_multi_failure() + set re=1 + call assert_fails('/a**', 'E61:') + call assert_fails('/a*\+', 'E62:') + call assert_fails('/a\{a}', 'E554:') + set re=2 + call assert_fails('/a**', 'E871:') + call assert_fails('/a*\+', 'E871:') + call assert_fails('/a\{a}', 'E870:') + set re=0 +endfunc