mirror of
https://github.com/vim/vim.git
synced 2025-10-03 05:14:07 -04:00
patch 8.2.3344: vimscript test fails
Problem: Vimscript test fails. Solution: Have test verify first error instead of second
This commit is contained in:
@@ -5657,7 +5657,12 @@ func Test_throw_multi_error()
|
||||
call EXEC(cmd . ' novar #') " normal plus syntax error
|
||||
catch /^Vim\((\a\+)\)\=:/
|
||||
Xloop 'e'
|
||||
call assert_match('E488: Trailing characters', v:exception)
|
||||
if cmd =~ 'unlet'
|
||||
" TODO: should get error for 'novar'
|
||||
call assert_match('E488: Trailing characters', v:exception)
|
||||
else
|
||||
call assert_match('E121: Undefined variable: novar', v:exception)
|
||||
endif
|
||||
finally
|
||||
Xloop 'f'
|
||||
call assert_equal("", v:errmsg)
|
||||
|
Reference in New Issue
Block a user