vim-patch:8.1.0751: some regexp errors are not tested

Problem:    Some regexp errors are not tested.
Solution:   Add a test function.
6057ed4720
This commit is contained in:
Jan Edmund Lazo
2019-05-25 16:31:17 -04:00
parent f2f625c984
commit 06d9fa2e0c

View File

@@ -73,3 +73,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