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)
diff --git a/src/testdir/test_const.vim b/src/testdir/test_const.vim
index 107e250..5eb2f69 100644
--- a/src/testdir/test_const.vim
+++ b/src/testdir/test_const.vim
@@ -207,9 +207,9 @@
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'