From 7517fd82260f03cc3ab7f77c391b6f1ff7372c6a Mon Sep 17 00:00:00 2001 From: w0rp Date: Wed, 7 Jun 2017 14:02:29 +0100 Subject: Move all functions for fixing things to autoload/ale/fixers, and only accept the lines of input where needed. --- test/test_function_arg_count.vader | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'test/test_function_arg_count.vader') diff --git a/test/test_function_arg_count.vader b/test/test_function_arg_count.vader index 748eed33..d256c403 100644 --- a/test/test_function_arg_count.vader +++ b/test/test_function_arg_count.vader @@ -39,3 +39,7 @@ Execute(We should be able to compute the argument count for lambdas): AssertEqual 3, ale#util#FunctionArgCount({x,y,z->1}) AssertEqual 3, ale#util#FunctionArgCount({x,y,z,...->1}) endif + +Execute(We should be able to compute the argument count autoload functions not yet loaded): + AssertEqual 1, ale#util#FunctionArgCount(function('ale#fixers#yapf#Fix')) + AssertEqual 1, ale#util#FunctionArgCount('ale#fixers#yapf#Fix') -- cgit v1.2.3