forked from aniani/vim
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:
@@ -1256,6 +1256,7 @@ func Test_sort_cmd()
|
||||
call assert_fails('sort no', 'E474:')
|
||||
call assert_fails('sort c', 'E475:')
|
||||
call assert_fails('sort #pat%', 'E654:')
|
||||
call assert_fails('sort /\%(/', 'E53:')
|
||||
|
||||
enew!
|
||||
endfunc
|
||||
|
||||
Reference in New Issue
Block a user