Mercurial > vim
diff src/testdir/test_vim9_builtin.vim @ 28846:0541b9c09e21 v8.2.4946
patch 8.2.4946: Vim9: some code not covered by tests
Commit: https://github.com/vim/vim/commit/7f8a3b11bfc02f24dfd877d0a81392d679008180
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu May 12 22:03:01 2022 +0100
patch 8.2.4946: Vim9: some code not covered by tests
Problem: Vim9: some code not covered by tests.
Solution: Add a few more test cases. Remove dead code.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Thu, 12 May 2022 23:15:03 +0200 |
parents | bf013128ccf4 |
children | c5862dfaf0bd |
line wrap: on
line diff
--- a/src/testdir/test_vim9_builtin.vim +++ b/src/testdir/test_vim9_builtin.vim @@ -78,6 +78,7 @@ enddef def Test_add() v9.CheckDefAndScriptFailure(['add({}, 1)'], ['E1013: Argument 1: type mismatch, expected list<any> but got dict<unknown>', 'E1226: List or Blob required for argument 1']) + v9.CheckDefAndScriptFailure(['add([])'], 'E119:') v9.CheckDefExecFailure([ 'var ln: list<number> = [1]', 'add(ln, "a")'],