1
0
forked from VimPlug/jedi

restructed dynamic array test and added rename tests

This commit is contained in:
David Halter
2012-08-09 16:36:59 +02:00
parent ae60bce836
commit b57cf57af6

View File

@@ -123,28 +123,21 @@ for a in arr:
#? float() str() #? float() str()
a a
for a in list(arr):
#? float() str() #? float() str()
a list(arr)[10]
for a in set(arr):
#? float() str()
a
# ----------------- # -----------------
# set.add # set.add
# ----------------- # -----------------
st = {1.0} st = {1.0}
for a in [1,2]: for a in [1,2]:
st.add(a); st.add(a)
st.append('') # lists should not have an influence
st.add # should not cause an exception st.add # should not cause an exception
st.add() st.add()
for s in st:
#? float() int()
s
# ----------------- # -----------------
# list.extend / set.update # list.extend / set.update
# ----------------- # -----------------
@@ -156,3 +149,22 @@ arr.extend("") # should ignore
##? float() int() ##? float() int()
arr[0] arr[0]
# -----------------
# renames / type changes
# -----------------
arr = []
arr2 = arr
arr2.append('')
#? str()
arr2[0]
st = {}
st.add(1)
lst = list(st)
lst.append('')
#? int() str()
lst[0]