summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJohn R. Lenton <jlenton@gmail.com>2014-01-06 17:38:47 +0000
committerJohn R. Lenton <jlenton@gmail.com>2014-01-07 22:51:08 +0000
commit4ce6ceadcad294a62f6fb2b23da262dc5cad0793 (patch)
tree43d36b56d44ba873988ef498b71026646f4c135f /tests
parenta41fe31322e92f84ecee4f3e6295bed2ec9120fd (diff)
Added dict.clear.
Added 0 to the list of primes. Funky primes, these.
Diffstat (limited to 'tests')
-rw-r--r--tests/basics/tests/dict_clear.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/basics/tests/dict_clear.py b/tests/basics/tests/dict_clear.py
new file mode 100644
index 000000000..6be2778be
--- /dev/null
+++ b/tests/basics/tests/dict_clear.py
@@ -0,0 +1,6 @@
+d = {1: 2, 3: 4}
+print(d)
+d.clear()
+print(d)
+d[2] = 42
+print(d)