mirror of
https://github.com/vim/vim.git
synced 2025-09-26 04:04:07 -04:00
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 #7004)
This commit is contained in:
@@ -973,6 +973,7 @@ func Test_match_func()
|
||||
call assert_equal(4, match('testing', 'ing', -1))
|
||||
call assert_fails("let x=match('testing', 'ing', 0, [])", 'E745:')
|
||||
call assert_equal(-1, match(test_null_list(), 2))
|
||||
call assert_equal(-1, match('abc', '\\%('))
|
||||
endfunc
|
||||
|
||||
func Test_matchend()
|
||||
|
Reference in New Issue
Block a user