aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2016-04-18 05:39:18 -0400
committerJustin M. Keyes <justinkz@gmail.com>2016-04-18 05:42:27 -0400
commita347b29aa3caf245a99e12bfc8167f3bf882f770 (patch)
tree6893c8d2a7ceebcce8154f9294d044f2bcf64072
parentc4117d4b2f0dfa08ee44ac6bd60d7f01e73d824e (diff)
downloadrneovim-a347b29aa3caf245a99e12bfc8167f3bf882f770.tar.gz
rneovim-a347b29aa3caf245a99e12bfc8167f3bf882f770.tar.bz2
rneovim-a347b29aa3caf245a99e12bfc8167f3bf882f770.zip
test: remote/define.vim: Add some spice.
-rw-r--r--test/functional/provider/define_spec.lua9
1 files changed, 7 insertions, 2 deletions
diff --git a/test/functional/provider/define_spec.lua b/test/functional/provider/define_spec.lua
index 26cd997fc3..c30ad6d8c2 100644
--- a/test/functional/provider/define_spec.lua
+++ b/test/functional/provider/define_spec.lua
@@ -311,14 +311,19 @@ local function function_specs_for(fn, sync, first_arg_factory, init)
end)
it('with range', function()
+ helpers.insert([[
+ foo
+ bar
+ baz
+ zub]])
call(fn, args..[[, {'range': ''}]])
local function on_setup()
- command('%call TestFunction(1, "a", ["b", "c"])')
+ command('2,3call TestFunction(1, "a", ["b", "c"])')
end
local function handler(method, arguments)
eq('test-handler', method)
- eq({{1, 'a', {'b', 'c'}}, {1, 1}}, arguments)
+ eq({{1, 'a', {'b', 'c'}}, {2, 3}}, arguments)
return 'rv'
end