patch 8.2.1803: a few failures are not tested
Problem: A few failures are not tested.
Solution: Test a few failures. (Dominique Pellé, closes #7075)
diff --git a/src/testdir/test_listdict.vim b/src/testdir/test_listdict.vim
index 63fa04e..54486ff 100644
--- a/src/testdir/test_listdict.vim
+++ b/src/testdir/test_listdict.vim
@@ -726,6 +726,8 @@
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()