Adding new stuff
This commit is contained in:
parent
9ef8a96f9a
commit
0b3d063cb3
1580 changed files with 0 additions and 0 deletions
47
vim-plugins/bundle/jedi-vim/jedi/test/refactor/extract.py
Normal file
47
vim-plugins/bundle/jedi-vim/jedi/test/refactor/extract.py
Normal file
|
|
@ -0,0 +1,47 @@
|
|||
# --- simple
|
||||
def test():
|
||||
#? 35 a
|
||||
return test(100, (30 + b, c) + 1)
|
||||
|
||||
# +++
|
||||
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
|
||||
return test(1, (30 + b, c)
|
||||
+ 1)
|
||||
# +++
|
||||
def test():
|
||||
x = ((30 + b, c)
|
||||
+ 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)
|
||||
|
||||
|
||||
18
vim-plugins/bundle/jedi-vim/jedi/test/refactor/inline.py
Normal file
18
vim-plugins/bundle/jedi-vim/jedi/test/refactor/inline.py
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
# --- simple
|
||||
def test():
|
||||
#? 4
|
||||
a = (30 + b, c) + 1
|
||||
return test(100, a)
|
||||
# +++
|
||||
def test():
|
||||
return test(100, (30 + b, c) + 1)
|
||||
|
||||
|
||||
# --- simple
|
||||
if 1:
|
||||
#? 4
|
||||
a = 1, 2
|
||||
return test(100, a)
|
||||
# +++
|
||||
if 1:
|
||||
return test(100, (1, 2))
|
||||
17
vim-plugins/bundle/jedi-vim/jedi/test/refactor/rename.py
Normal file
17
vim-plugins/bundle/jedi-vim/jedi/test/refactor/rename.py
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
"""
|
||||
Test coverage for renaming is mostly being done by testing
|
||||
`Script.usages`.
|
||||
"""
|
||||
|
||||
# --- simple
|
||||
def test1():
|
||||
#? 7 blabla
|
||||
test1()
|
||||
AssertionError
|
||||
return test1, test1.not_existing
|
||||
# +++
|
||||
def blabla():
|
||||
blabla()
|
||||
AssertionError
|
||||
return blabla, blabla.not_existing
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue