From bc3e1ada0337712f884ad7ebece19a8a44b99526 Mon Sep 17 00:00:00 2001 From: Dave Halter Date: Tue, 25 Feb 2020 23:30:44 +0100 Subject: [PATCH] One more comment test for extract with range --- test/refactor/extract_function.py | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/test/refactor/extract_function.py b/test/refactor/extract_function.py index 5f39bb87..1e09c89a 100644 --- a/test/refactor/extract_function.py +++ b/test/refactor/extract_function.py @@ -190,3 +190,24 @@ def a(test, v3): y = a(test, v3) y +# -------------------------------------------------- with-range-3 +#foo +#? 2 text {'new_name': 'a', 'until_line': 5, 'until_column': 4} +v1 = 3 +v2 = 2 +x, y = test(v1 + v2 * v3) +#raaaa +y +# ++++++++++++++++++++++++++++++++++++++++++++++++++ +#foo +#? 2 text {'new_name': 'a', 'until_line': 5, 'until_column': 4} +def a(test, v3): + v1 = 3 + v2 = 2 + x, y = test(v1 + v2 * v3) + return y + + +y = a(test, v3) +#raaaa +y