diff options
author | Bram Moolenaar <Bram@vim.org> | 2019-01-14 23:19:29 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2019-01-14 23:19:29 +0100 |
commit | 6057ed4720eaa1d546bbd234e6957ec0163e0e9b (patch) | |
tree | 000a32091a67753f5e10f8125119c7b612708514 /src/testdir/test_regexp_latin.vim | |
parent | 8144acbec33b751788a7912e2d880c083c6cfe93 (diff) | |
download | vim-git-6057ed4720eaa1d546bbd234e6957ec0163e0e9b.tar.gz |
patch 8.1.0751: some regexp errors are not testedv8.1.0751
Problem: Some regexp errors are not tested.
Solution: Add a test function.
Diffstat (limited to 'src/testdir/test_regexp_latin.vim')
-rw-r--r-- | src/testdir/test_regexp_latin.vim | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/testdir/test_regexp_latin.vim b/src/testdir/test_regexp_latin.vim index a8fa64d2a..15249455e 100644 --- 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 |