comparison src/testdir/test_listdict.vim @ 22510:7060df0b8ebf v8.2.1803

patch 8.2.1803: a few failures are not tested Commit: https://github.com/vim/vim/commit/afe8cf617013fd8c3f0189f1e1fa7a2a6a8f7511 Author: Bram Moolenaar <Bram@vim.org> Date: Mon Oct 5 20:07:18 2020 +0200 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 https://github.com/vim/vim/issues/7075)
author Bram Moolenaar <Bram@vim.org>
date Mon, 05 Oct 2020 20:15:05 +0200
parents 595ea7f099cd
children 159a637fe5b4
comparison
equal deleted inserted replaced
22509:d5615d1eed10 22510:7060df0b8ebf
724 call assert_fails("call reduce(0z, { acc, val -> acc + val })", 'E998: Reduce of an empty Blob with no initial value') 724 call assert_fails("call reduce(0z, { acc, val -> acc + val })", 'E998: Reduce of an empty Blob with no initial value')
725 725
726 call assert_fails("call reduce({}, { acc, val -> acc + val }, 1)", 'E897:') 726 call assert_fails("call reduce({}, { acc, val -> acc + val }, 1)", 'E897:')
727 call assert_fails("call reduce(0, { acc, val -> acc + val }, 1)", 'E897:') 727 call assert_fails("call reduce(0, { acc, val -> acc + val }, 1)", 'E897:')
728 call assert_fails("call reduce('', { acc, val -> acc + val }, 1)", 'E897:') 728 call assert_fails("call reduce('', { acc, val -> acc + val }, 1)", 'E897:')
729 call assert_fails("call reduce([1, 2], 'Xdoes_not_exist')", 'E117:')
730 call assert_fails("echo reduce(0z01, { acc, val -> 2 * acc + val }, '')", 'E39:')
729 731
730 let g:lut = [1, 2, 3, 4] 732 let g:lut = [1, 2, 3, 4]
731 func EvilRemove() 733 func EvilRemove()
732 call remove(g:lut, 1) 734 call remove(g:lut, 1)
733 return 1 735 return 1