0
0
mirror of https://github.com/vim/vim.git synced 2025-09-30 04:44:14 -04:00

patch 8.2.0492: Vim9: some error messages not tested

Problem:    Vim9: some error messages not tested.
Solution:   Add more tests.  Remove dead code.  Fix uncovered bugs.
This commit is contained in:
Bram Moolenaar
2020-04-01 21:17:24 +02:00
parent 2da0f0c445
commit a8c1770469
5 changed files with 66 additions and 17 deletions

View File

@@ -106,6 +106,8 @@ func Test_expr2_fails()
call CheckDefFailure("let x = 1||2", msg)
call CheckDefFailure("let x = 1 ||2", msg)
call CheckDefFailure("let x = 1|| 2", msg)
call CheckDefFailure("let x = 1 || xxx", 'E1001:')
endfunc
" test &&
@@ -877,7 +879,7 @@ func Test_expr7_fails()
call CheckDefFailure("let x = 123->{x -> x + 5) }", "E451:")
call CheckDefFailure("let x = &notexist", 'E113:')
call CheckDefExecFailure("&grepprg = [343]", 'E1051:')
call CheckDefFailure("&grepprg = [343]", 'E1013:')
call CheckDefExecFailure("echo s:doesnt_exist", 'E121:')
call CheckDefExecFailure("echo g:doesnt_exist", 'E121:')