aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2023-08-17 16:17:22 +0800
committerzeertzjq <zeertzjq@outlook.com>2023-08-17 16:44:55 +0800
commit1ed12a2e10708f0d4ce39e5adb94d189455f4d98 (patch)
treebb52f5e77519b354a11499c92d1e76a0c476ae89 /test
parent1918e1ea6d0192712e0a03926e2965a7aac0955e (diff)
downloadrneovim-1ed12a2e10708f0d4ce39e5adb94d189455f4d98.tar.gz
rneovim-1ed12a2e10708f0d4ce39e5adb94d189455f4d98.tar.bz2
rneovim-1ed12a2e10708f0d4ce39e5adb94d189455f4d98.zip
vim-patch:9.0.0548: reduce() with a compiled lambda could be faster
Problem: reduce() with a compiled lambda could be faster. Solution: Call eval_expr_typval() instead of call_func() directly. https://github.com/vim/vim/commit/f1c60d4bf10794265b828afd9c5f7eddacada10b Co-authored-by: Bram Moolenaar <Bram@vim.org>
Diffstat (limited to 'test')
-rw-r--r--test/old/testdir/test_listdict.vim2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/old/testdir/test_listdict.vim b/test/old/testdir/test_listdict.vim
index e82ea60d81..abb7f88a7b 100644
--- a/test/old/testdir/test_listdict.vim
+++ b/test/old/testdir/test_listdict.vim
@@ -958,7 +958,7 @@ func Test_reduce()
call assert_fails("call reduce({}, { acc, val -> acc + val }, 1)", 'E1098:')
call assert_fails("call reduce(0, { acc, val -> acc + val }, 1)", 'E1098:')
- call assert_fails("call reduce([1, 2], 'Xdoes_not_exist')", 'E117:')
+ call assert_fails("call reduce([1, 2], 'Xdoes_not_exist')", 'E121:')
call assert_fails("echo reduce(0z01, { acc, val -> 2 * acc + val }, '')", 'E1210:')
" call assert_fails("vim9 reduce(0, (acc, val) => (acc .. val), '')", 'E1252:')