forked from aniani/vim
patch 8.2.1183: assert_fails() checks the last error message
Problem: assert_fails() checks the last error message.
Solution: Check the first error, it is more relevant. Fix all the tests
that rely on the old behavior.
This commit is contained in:
@@ -83,7 +83,7 @@ func Test_multi_failure()
|
||||
set re=2
|
||||
call assert_fails('/a**', 'E871:')
|
||||
call assert_fails('/a*\+', 'E871:')
|
||||
call assert_fails('/a\{a}', 'E870:')
|
||||
call assert_fails('/a\{a}', 'E554:')
|
||||
set re=0
|
||||
endfunc
|
||||
|
||||
|
||||
Reference in New Issue
Block a user