aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2025-01-16 09:35:52 +0800
committerzeertzjq <zeertzjq@outlook.com>2025-01-16 11:17:14 +0800
commit47a4e4239203fe96d404874bdc1ea6910f72b695 (patch)
tree0e08a4e5fc1e9cbe051f52297b8441cee32da6e1 /test
parentf8680d009741d01e137aeb2232aa7e033cd70d7b (diff)
downloadrneovim-47a4e4239203fe96d404874bdc1ea6910f72b695.tar.gz
rneovim-47a4e4239203fe96d404874bdc1ea6910f72b695.tar.bz2
rneovim-47a4e4239203fe96d404874bdc1ea6910f72b695.zip
vim-patch:9.1.1017: Vim9: Patch 9.1.1013 causes a few problems
Problem: Vim9: Patch 9.1.1013 causes a few problems Solution: Translate the function name only when it is a string (Yegappan Lakshmanan) fixes: vim/vim#16453 closes: vim/vim#16450 https://github.com/vim/vim/commit/9904cbca4132f7376246a1a31305eb53e9530023 Cherry-pick call() change from patch 9.0.0345. Co-authored-by: Yegappan Lakshmanan <yegappan@yahoo.com>
Diffstat (limited to 'test')
-rw-r--r--test/old/testdir/test_functions.vim4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/old/testdir/test_functions.vim b/test/old/testdir/test_functions.vim
index 327ea98e1c..01e6001dcc 100644
--- a/test/old/testdir/test_functions.vim
+++ b/test/old/testdir/test_functions.vim
@@ -2672,7 +2672,9 @@ endfunc
func Test_call()
call assert_equal(3, call('len', [123]))
call assert_equal(3, 'len'->call([123]))
- call assert_fails("call call('len', 123)", 'E714:')
+ call assert_equal(4, call({ x -> len(x) }, ['xxxx']))
+ call assert_equal(2, call(function('len'), ['xx']))
+ call assert_fails("call call('len', 123)", 'E1211:')
call assert_equal(0, call('', []))
call assert_equal(0, call('len', v:_null_list))