mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-07 22:44:27 +08:00
changed many tests from old completion tests to type tests, which brings more security
This commit is contained in:
@@ -3,40 +3,26 @@
|
|||||||
# -----------------
|
# -----------------
|
||||||
|
|
||||||
for a in [1,2]:
|
for a in [1,2]:
|
||||||
#? ['real']
|
#? int() int()
|
||||||
a.real
|
a
|
||||||
|
|
||||||
for a1 in 1,"":
|
for a1 in 1,"":
|
||||||
#? ['real']
|
#? int() str()
|
||||||
a1.real
|
a1
|
||||||
#? ['upper']
|
|
||||||
a1.upper
|
|
||||||
|
|
||||||
for a3, b3 in (1,""), (1,""), (1,""):
|
for a3, b3 in (1,""), (1,""), (1,""):
|
||||||
#? ['real']
|
#? int() int() int()
|
||||||
a3.real
|
a3
|
||||||
#? []
|
#? str() str() str()
|
||||||
a3.upper
|
b3
|
||||||
#? []
|
|
||||||
b3.real
|
|
||||||
#? ['upper']
|
|
||||||
b3.upper
|
|
||||||
|
|
||||||
for a4, (b4, c4) in (1,("", list)), (1,("", list)):
|
for a4, (b4, c4) in (1,("", list)), (1,("", list)):
|
||||||
#? ['real']
|
#? int() int()
|
||||||
a4.real
|
a4
|
||||||
#? []
|
#? str() str()
|
||||||
a4.upper
|
b4
|
||||||
#? []
|
#? list
|
||||||
b4.real
|
c4
|
||||||
#? ['upper']
|
|
||||||
b4.upper
|
|
||||||
#? []
|
|
||||||
c4.real
|
|
||||||
#? ['append']
|
|
||||||
c4.append
|
|
||||||
#? []
|
|
||||||
c4.upper
|
|
||||||
|
|
||||||
# -----------------
|
# -----------------
|
||||||
# list comprehensions
|
# list comprehensions
|
||||||
|
|||||||
@@ -2,16 +2,16 @@ def openbrace():
|
|||||||
asdf = 3
|
asdf = 3
|
||||||
asdf
|
asdf
|
||||||
asdf(
|
asdf(
|
||||||
#? ['real']
|
#? int()
|
||||||
asdf.real
|
asdf
|
||||||
return 1
|
return 1
|
||||||
|
|
||||||
#? ['real']
|
#? int()
|
||||||
openbrace().real
|
openbrace()
|
||||||
|
|
||||||
blub([
|
blub([
|
||||||
#? ['real']
|
#? int()
|
||||||
openbrace().real
|
openbrace()
|
||||||
|
|
||||||
def indentfault():
|
def indentfault():
|
||||||
asd(
|
asd(
|
||||||
@@ -25,8 +25,8 @@ def openbrace2():
|
|||||||
def normalfunc():
|
def normalfunc():
|
||||||
return 1
|
return 1
|
||||||
|
|
||||||
##? ['real']
|
##? int()
|
||||||
normalfunc().real
|
normalfunc()
|
||||||
|
|
||||||
|
|
||||||
# first part not complete (raised errors)
|
# first part not complete (raised errors)
|
||||||
|
|||||||
Reference in New Issue
Block a user