summaryrefslogtreecommitdiff
path: root/src/testdir/test_let.vim
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2020-09-04 21:18:46 +0200
committerBram Moolenaar <Bram@vim.org>2020-09-04 21:18:46 +0200
commite2e4075fad1326181edc5a131e48c644ef613693 (patch)
treef3749b559e690b3e8e80990441aeb6459d955fce /src/testdir/test_let.vim
parent24f7750ffa9730579736d779b7cc94faff325fc1 (diff)
downloadvim-git-e2e4075fad1326181edc5a131e48c644ef613693.tar.gz
patch 8.2.1593: tests do not check the error number properlyv8.2.1593
Problem: Tests do not check the error number properly.0 Solution: Add a colon after the error number. (closes #6869)
Diffstat (limited to 'src/testdir/test_let.vim')
-rw-r--r--src/testdir/test_let.vim8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/testdir/test_let.vim b/src/testdir/test_let.vim
index 017b2a4a4..6dc36ea96 100644
--- a/src/testdir/test_let.vim
+++ b/src/testdir/test_let.vim
@@ -250,23 +250,23 @@ func Test_let_termcap()
let &t_k1 = old_t_k1
endif
- call assert_fails('let x = &t_xx', 'E113')
+ call assert_fails('let x = &t_xx', 'E113:')
let &t_xx = "yes"
call assert_equal("yes", &t_xx)
let &t_xx = ""
- call assert_fails('let x = &t_xx', 'E113')
+ call assert_fails('let x = &t_xx', 'E113:')
endfunc
func Test_let_option_error()
let _w = &tw
let &tw = 80
- call assert_fails('let &tw .= 1', 'E734')
+ call assert_fails('let &tw .= 1', 'E734:')
call assert_equal(80, &tw)
let &tw = _w
let _w = &fillchars
let &fillchars = "vert:|"
- call assert_fails('let &fillchars += "diff:-"', 'E734')
+ call assert_fails('let &fillchars += "diff:-"', 'E734:')
call assert_equal("vert:|", &fillchars)
let &fillchars = _w
endfunc