1
0
forked from VimPlug/jedi

Rewrite old refactoring tests a bit to reuse them

This commit is contained in:
Dave Halter
2020-02-13 09:27:57 +01:00
parent 41602124c7
commit aef675c79b
3 changed files with 26 additions and 18 deletions

View File

@@ -1,31 +1,31 @@
# --- simple
# -------------------------------------------------- simple-1
def test():
#? 35 a
#? 35 {'new_name': 'a'}
return test(100, (30 + b, c) + 1)
# +++
# ++++++++++++++++++++++++++++++++++++++++++++++++++
def test():
a = (30 + b, c) + 1
return test(100, a)
# --- simple #2
# -------------------------------------------------- simple-2
def test():
#? 25 a
#? 25 {'new_name': 'a'}
return test(100, (30 + b, c) + 1)
# +++
# ++++++++++++++++++++++++++++++++++++++++++++++++++
def test():
a = 30 + b
return test(100, (a, c) + 1)
# --- multiline
# -------------------------------------------------- multiline-1
def test():
#? 30 x
#? 30 {'new_name': 'a'}
return test(1, (30 + b, c)
+ 1)
# +++
# ++++++++++++++++++++++++++++++++++++++++++++++++++
def test():
x = ((30 + b, c)
+ 1)
@@ -33,12 +33,12 @@ def test():
)
# --- multiline #2
# -------------------------------------------------- multiline-2
def test():
#? 25 x
#? 25 {'new_name': 'a'}
return test(1, (30 + b, c)
+ 1)
# +++
# ++++++++++++++++++++++++++++++++++++++++++++++++++
def test():
x = 30 + b
return test(1, (x, c)