1
0
forked from VimPlug/jedi

added ordering tests

This commit is contained in:
David Halter
2012-05-02 17:10:31 +02:00
parent 29f05aad8f
commit 1340ccb33d
5 changed files with 119 additions and 12 deletions

View File

@@ -39,8 +39,31 @@ def variable_rename(param):
#? ['imag']
variable_rename(1).imag
# double execution -> shouldn't work (and throw no error)
# -----------------
# double execution
# -----------------
def double_exe(param):
return param
#? ['upper']
variable_rename(double_exe)("").upper
# -> shouldn't work (and throw no error)
#? []
variable_rename(list())().
#? []
variable_rename(1)().
# -----------------
# closures
# -----------------
def a():
l = 3
def func_b():
#? ['real']
l.real
l = ''
#? ['func_b']
func_b
#? ['real']
l.real