mirror of
https://github.com/neovim/neovim.git
synced 2024-12-20 11:15:14 -07:00
test: rewrite to multiple arguments
This commit is contained in:
parent
7124c0e5ac
commit
89123017b8
@ -92,12 +92,12 @@ local function command_specs_for(fn, sync, first_arg_factory, init)
|
|||||||
it('with nargs/double-quote', function()
|
it('with nargs/double-quote', function()
|
||||||
call(fn, args..', {"nargs": "*"}')
|
call(fn, args..', {"nargs": "*"}')
|
||||||
local function on_setup()
|
local function on_setup()
|
||||||
command('RpcCommand "arg"')
|
command('RpcCommand "arg1" "arg2" "arg3"')
|
||||||
end
|
end
|
||||||
|
|
||||||
local function handler(method, arguments)
|
local function handler(method, arguments)
|
||||||
eq('test-handler', method)
|
eq('test-handler', method)
|
||||||
eq({'"arg"'}, arguments[1])
|
eq({'"arg1"', '"arg2"', '"arg3"'}, arguments[1])
|
||||||
return ''
|
return ''
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user