forgot to add test for dict.update

This commit is contained in:
John R. Lenton 2014-01-07 22:51:51 +00:00
parent 88f3043e0a
commit 27d4ca7693
1 changed files with 10 additions and 0 deletions

View File

@ -0,0 +1,10 @@
d = {1:2, 3:4}
print(d)
d.update(["ab"])
print(d[1])
print(d[3])
print(d["a"])
print(len(d))
d.update([(1,4)])
print(d[1])
print(len(d))