test: rewrite to multiple arguments

This commit is contained in:
kuuote 2020-06-01 00:10:17 +09:00
parent 7124c0e5ac
commit 89123017b8

View File

@ -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