aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJohn R. Lenton2014-01-07 22:51:51 +0000
committerJohn R. Lenton2014-01-07 22:51:51 +0000
commit27d4ca7693c276d09a911c00c3442729c516dc23 (patch)
tree3f6f8b3025c6892fd418ae3032631f035c3df871 /tests
parent88f3043e0a306b17d3b9bdf530da51a66ba1cccc (diff)
forgot to add test for dict.update
Diffstat (limited to 'tests')
-rw-r--r--tests/basics/tests/dict_update.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/basics/tests/dict_update.py b/tests/basics/tests/dict_update.py
new file mode 100644
index 000000000..e7ae0bd96
--- /dev/null
+++ b/tests/basics/tests/dict_update.py
@@ -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))