aboutsummaryrefslogtreecommitdiff
path: root/test/old
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2025-01-16 12:20:33 +0800
committerGitHub <noreply@github.com>2025-01-16 12:20:33 +0800
commit92d3bf101d07d52cfbd4c22e6e06251897adda34 (patch)
tree0e08a4e5fc1e9cbe051f52297b8441cee32da6e1 /test/old
parent718e16536052c0e75de61a32ef237a9e87fc03f2 (diff)
parent47a4e4239203fe96d404874bdc1ea6910f72b695 (diff)
downloadrneovim-92d3bf101d07d52cfbd4c22e6e06251897adda34.tar.gz
rneovim-92d3bf101d07d52cfbd4c22e6e06251897adda34.tar.bz2
rneovim-92d3bf101d07d52cfbd4c22e6e06251897adda34.zip
Merge pull request #32051 from zeertzjq/vim-9.1.1013
vim-patch:9.1.{1013,1017}
Diffstat (limited to 'test/old')
-rw-r--r--test/old/testdir/test_functions.vim4
-rw-r--r--test/old/testdir/test_user_func.vim2
2 files changed, 4 insertions, 2 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))
diff --git a/test/old/testdir/test_user_func.vim b/test/old/testdir/test_user_func.vim
index 3c24412eb7..b509b03778 100644
--- a/test/old/testdir/test_user_func.vim
+++ b/test/old/testdir/test_user_func.vim
@@ -380,7 +380,7 @@ func Test_script_local_func()
" Try to call a script local function in global scope
let lines =<< trim [CODE]
:call assert_fails('call s:Xfunc()', 'E81:')
- :call assert_fails('let x = call("<SID>Xfunc", [])', 'E120:')
+ :call assert_fails('let x = call("<SID>Xfunc", [])', ['E81:', 'E117:'])
:call writefile(v:errors, 'Xresult')
:qall