aboutsummaryrefslogtreecommitdiff
path: root/test/functional
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/functional
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/functional')
-rw-r--r--test/functional/vimscript/ctx_functions_spec.lua7
1 files changed, 5 insertions, 2 deletions
diff --git a/test/functional/vimscript/ctx_functions_spec.lua b/test/functional/vimscript/ctx_functions_spec.lua
index 873e4f820d..85a74c0ab6 100644
--- a/test/functional/vimscript/ctx_functions_spec.lua
+++ b/test/functional/vimscript/ctx_functions_spec.lua
@@ -188,7 +188,10 @@ describe('context functions', function()
function RestoreFuncs()
call ctxpop()
endfunction
+
+ let g:sid = expand('<SID>')
]])
+ local sid = api.nvim_get_var('sid')
eq('Hello, World!', exec_capture([[call Greet('World')]]))
eq(
@@ -200,11 +203,11 @@ describe('context functions', function()
call('DeleteSFuncs')
eq(
- 'function Greet, line 1: Vim(call):E117: Unknown function: s:greet',
+ ('function Greet, line 1: Vim(call):E117: Unknown function: %sgreet'):format(sid),
pcall_err(command, [[call Greet('World')]])
)
eq(
- 'function GreetAll, line 1: Vim(call):E117: Unknown function: s:greet_all',
+ ('function GreetAll, line 1: Vim(call):E117: Unknown function: %sgreet_all'):format(sid),
pcall_err(command, [[call GreetAll('World', 'One', 'Two', 'Three')]])
)