From 27d4ca7693c276d09a911c00c3442729c516dc23 Mon Sep 17 00:00:00 2001 From: "John R. Lenton" Date: Tue, 7 Jan 2014 22:51:51 +0000 Subject: [PATCH] forgot to add test for dict.update --- tests/basics/tests/dict_update.py | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 tests/basics/tests/dict_update.py diff --git a/tests/basics/tests/dict_update.py b/tests/basics/tests/dict_update.py new file mode 100644 index 0000000000..e7ae0bd965 --- /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))