aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/testdir/test_listdict.vim
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2022-08-15 22:17:05 +0800
committerGitHub <noreply@github.com>2022-08-15 22:17:05 +0800
commit6b686e7e1e09a048bd8e99e86d052d713f9ec30e (patch)
tree77bbeb8298ce2bb4483f748ddd40808889776239 /src/nvim/testdir/test_listdict.vim
parentcbb2e634c9da7cc6e5fe6f18539ab7deb9d67915 (diff)
parent747dec7925e130e754cf5ef1db87dd8747923514 (diff)
downloadrneovim-6b686e7e1e09a048bd8e99e86d052d713f9ec30e.tar.gz
rneovim-6b686e7e1e09a048bd8e99e86d052d713f9ec30e.tar.bz2
rneovim-6b686e7e1e09a048bd8e99e86d052d713f9ec30e.zip
Merge pull request #19785 from zeertzjq/vim-8.2.1803
vim-patch:8.2.{1803,3345,3392}
Diffstat (limited to 'src/nvim/testdir/test_listdict.vim')
-rw-r--r--src/nvim/testdir/test_listdict.vim2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_listdict.vim b/src/nvim/testdir/test_listdict.vim
index aa66d86af1..2f4e1db4a1 100644
--- a/src/nvim/testdir/test_listdict.vim
+++ b/src/nvim/testdir/test_listdict.vim
@@ -649,6 +649,8 @@ func Test_reduce()
call assert_fails("call reduce({}, { acc, val -> acc + val }, 1)", 'E897:')
call assert_fails("call reduce(0, { acc, val -> acc + val }, 1)", 'E897:')
call assert_fails("call reduce('', { acc, val -> acc + val }, 1)", 'E897:')
+ call assert_fails("call reduce([1, 2], 'Xdoes_not_exist')", 'E117:')
+ call assert_fails("echo reduce(0z01, { acc, val -> 2 * acc + val }, '')", 'E39:')
let g:lut = [1, 2, 3, 4]
func EvilRemove()