forked from aniani/vim
patch 8.2.1593: tests do not check the error number properly
Problem: Tests do not check the error number properly.0 Solution: Add a colon after the error number. (closes #6869)
This commit is contained in:
@@ -207,9 +207,9 @@ endfunc
|
||||
func Test_lockvar()
|
||||
let x = 'hello'
|
||||
lockvar x
|
||||
call assert_fails('let x = "there"', 'E741')
|
||||
call assert_fails('let x = "there"', 'E741:')
|
||||
if 0 | unlockvar x | endif
|
||||
call assert_fails('let x = "there"', 'E741')
|
||||
call assert_fails('let x = "there"', 'E741:')
|
||||
unlockvar x
|
||||
let x = 'there'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user