From 8c3858b01623f9527b57b13c44ff97c67bafb00b Mon Sep 17 00:00:00 2001 From: Paul Sokolovsky Date: Sun, 19 Jan 2014 18:41:55 +0200 Subject: Move tests in basic/tests/ up one level preparating to multiple test dirs. --- tests/basics/dict_update.py | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 tests/basics/dict_update.py (limited to 'tests/basics/dict_update.py') diff --git a/tests/basics/dict_update.py b/tests/basics/dict_update.py new file mode 100644 index 0000000000..e7ae0bd965 --- /dev/null +++ b/tests/basics/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)) -- cgit v1.2.3