diff options
author | John R. Lenton <jlenton@gmail.com> | 2014-01-07 22:51:51 +0000 |
---|---|---|
committer | John R. Lenton <jlenton@gmail.com> | 2014-01-07 22:51:51 +0000 |
commit | 27d4ca7693c276d09a911c00c3442729c516dc23 (patch) | |
tree | 3f6f8b3025c6892fd418ae3032631f035c3df871 | |
parent | 88f3043e0a306b17d3b9bdf530da51a66ba1cccc (diff) | |
download | micropython-27d4ca7693c276d09a911c00c3442729c516dc23.tar.gz micropython-27d4ca7693c276d09a911c00c3442729c516dc23.zip |
forgot to add test for dict.update
-rw-r--r-- | tests/basics/tests/dict_update.py | 10 |
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 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)) |