From eef47e951ee89c04b54e7ae2003b4aef4cdb07e9 Mon Sep 17 00:00:00 2001 From: Dave Halter Date: Wed, 26 Feb 2020 00:21:46 +0100 Subject: [PATCH] One more function test --- test/refactor/extract_function.py | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/test/refactor/extract_function.py b/test/refactor/extract_function.py index 835d2c1c..812ca5ed 100644 --- a/test/refactor/extract_function.py +++ b/test/refactor/extract_function.py @@ -275,3 +275,28 @@ def x(v1): y = a(v1, v2, v3) return y x +# -------------------------------------------------- with-range-func-3 +def x(v1): + #? 2 text {'new_name': 'func', 'until_line': 6, 'until_column': 4} + #foo + v2 = 2 + x = v1 * 2 + y = 3 + #bar + return x +x +# ++++++++++++++++++++++++++++++++++++++++++++++++++ +def func(v1): + #foo + v2 = 2 + x = v1 * 2 + return x + + +def x(v1): + #? 2 text {'new_name': 'func', 'until_line': 6, 'until_column': 4} + x = func(v1) + y = 3 + #bar + return x +x