1
0
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:
Bram Moolenaar
2020-09-04 21:18:46 +02:00
parent 24f7750ffa
commit e2e4075fad
43 changed files with 172 additions and 170 deletions

View File

@@ -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'