From 5fc1d1130df195738f0c1fbec4486d58293f0921 Mon Sep 17 00:00:00 2001 From: David Halter Date: Mon, 7 Jan 2013 14:00:28 +0100 Subject: [PATCH] more extract tests --- test/refactor/extract.py | 28 +++++++++++++++++++++++++++- 1 file changed, 27 insertions(+), 1 deletion(-) diff --git a/test/refactor/extract.py b/test/refactor/extract.py index f4967ded..312aced8 100644 --- a/test/refactor/extract.py +++ b/test/refactor/extract.py @@ -1,6 +1,6 @@ # --- simple def test(): - #? 25 a + #? 35 a return test(100, (30 + b, c) + 1) # +++ @@ -8,6 +8,18 @@ def test(): a = (30 + b, c) + 1 return test(100, a) + +# --- simple #2 +def test(): + #? 25 a + return test(100, (30 + b, c) + 1) + +# +++ +def test(): + a = 30 + b + return test(100, (a, c) + 1) + + # --- multiline def test(): #? 30 x @@ -19,3 +31,17 @@ def test(): + 1) return test(1, x ) + + +# --- multiline #2 +def test(): + #? 25 x + return test(1, (30 + b, c) + + 1) +# +++ +def test(): + x = 30 + b + return test(1, (x, c) + + 1) + +