mirror of
https://github.com/neovim/neovim.git
synced 2025-09-06 19:38:20 +00:00
test, provider/define_spec.lua: fix few tests fail
fbd6a86 changes the behavior of :command-range and no longer allows arbitrary numbers. Adjust tests to reflect this behavior.
This commit is contained in:
@@ -136,7 +136,7 @@ local function command_specs_for(fn, sync, first_arg_factory, init)
|
|||||||
end)
|
end)
|
||||||
|
|
||||||
it('with nargs/count', function()
|
it('with nargs/count', function()
|
||||||
call(fn, args..', {"nargs": "1", "range": "5"}')
|
call(fn, args..', {"nargs": "1", "count": "5"}')
|
||||||
local function on_setup()
|
local function on_setup()
|
||||||
command('5RpcCommand arg')
|
command('5RpcCommand arg')
|
||||||
end
|
end
|
||||||
@@ -152,7 +152,7 @@ local function command_specs_for(fn, sync, first_arg_factory, init)
|
|||||||
end)
|
end)
|
||||||
|
|
||||||
it('with nargs/count/bang', function()
|
it('with nargs/count/bang', function()
|
||||||
call(fn, args..', {"nargs": "1", "range": "5", "bang": ""}')
|
call(fn, args..', {"nargs": "1", "count": "5", "bang": ""}')
|
||||||
local function on_setup()
|
local function on_setup()
|
||||||
command('5RpcCommand! arg')
|
command('5RpcCommand! arg')
|
||||||
end
|
end
|
||||||
@@ -169,7 +169,7 @@ local function command_specs_for(fn, sync, first_arg_factory, init)
|
|||||||
end)
|
end)
|
||||||
|
|
||||||
it('with nargs/count/bang/register', function()
|
it('with nargs/count/bang/register', function()
|
||||||
call(fn, args..', {"nargs": "1", "range": "5", "bang": "",'..
|
call(fn, args..', {"nargs": "1", "count": "5", "bang": "",'..
|
||||||
' "register": ""}')
|
' "register": ""}')
|
||||||
local function on_setup()
|
local function on_setup()
|
||||||
command('5RpcCommand! b arg')
|
command('5RpcCommand! b arg')
|
||||||
@@ -188,7 +188,7 @@ local function command_specs_for(fn, sync, first_arg_factory, init)
|
|||||||
end)
|
end)
|
||||||
|
|
||||||
it('with nargs/count/bang/register/eval', function()
|
it('with nargs/count/bang/register/eval', function()
|
||||||
call(fn, args..', {"nargs": "1", "range": "5", "bang": "",'..
|
call(fn, args..', {"nargs": "1", "count": "5", "bang": "",'..
|
||||||
' "register": "", "eval": "@<reg>"}')
|
' "register": "", "eval": "@<reg>"}')
|
||||||
local function on_setup()
|
local function on_setup()
|
||||||
command('let @b = "regb"')
|
command('let @b = "regb"')
|
||||||
|
Reference in New Issue
Block a user