From a347b29aa3caf245a99e12bfc8167f3bf882f770 Mon Sep 17 00:00:00 2001 From: "Justin M. Keyes" Date: Mon, 18 Apr 2016 05:39:18 -0400 Subject: test: remote/define.vim: Add some spice. --- test/functional/provider/define_spec.lua | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'test') 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 -- cgit