mirror of
https://github.com/neovim/neovim.git
synced 2024-12-20 03:05:11 -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()
|
||||
call(fn, args..', {"nargs": "*"}')
|
||||
local function on_setup()
|
||||
command('RpcCommand "arg"')
|
||||
command('RpcCommand "arg1" "arg2" "arg3"')
|
||||
end
|
||||
|
||||
local function handler(method, arguments)
|
||||
eq('test-handler', method)
|
||||
eq({'"arg"'}, arguments[1])
|
||||
eq({'"arg1"', '"arg2"', '"arg3"'}, arguments[1])
|
||||
return ''
|
||||
end
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user