diff options
author | John R. Lenton <jlenton@gmail.com> | 2014-01-06 18:53:16 +0000 |
---|---|---|
committer | John R. Lenton <jlenton@gmail.com> | 2014-01-07 22:51:08 +0000 |
commit | cd0887352d18467ea96728e75255ea36f425450d (patch) | |
tree | fca4c0cdb1438ed2b32a68fe7c31f01f1d58bb54 /tests | |
parent | d90b19eca56a361d432ab6af9c2305bb3f708e1c (diff) | |
download | micropython-cd0887352d18467ea96728e75255ea36f425450d.tar.gz micropython-cd0887352d18467ea96728e75255ea36f425450d.zip |
Added dict.get.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/basics/tests/dict_get.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/basics/tests/dict_get.py b/tests/basics/tests/dict_get.py new file mode 100644 index 0000000000..fb43a45eab --- /dev/null +++ b/tests/basics/tests/dict_get.py @@ -0,0 +1,3 @@ +for d in {}, {42:2}: + print(d.get(42)) + print(d.get(42,2)) |