diff options
| author | John R. Lenton <jlenton@gmail.com> | 2014-01-10 11:25:03 +0000 |
|---|---|---|
| committer | John R. Lenton <jlenton@gmail.com> | 2014-01-10 11:25:03 +0000 |
| commit | 4bee76ebca8d0507da6a957cf9e1eaf29fdcc7b1 (patch) | |
| tree | 86713e093aed710579e290bcab9813bbf0d9c9af /tests | |
| parent | ab04f5804f72181076af4e61fe9377a7e2dbafa1 (diff) | |
Added dict.fromkeys. Are we done with dict and #99 yet? I do think we are.
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/basics/tests/dict_fromkeys.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/basics/tests/dict_fromkeys.py b/tests/basics/tests/dict_fromkeys.py new file mode 100644 index 000000000..d03f6ae9d --- /dev/null +++ b/tests/basics/tests/dict_fromkeys.py @@ -0,0 +1,10 @@ +d = dict.fromkeys([1, 2, 3, 4]) +l = list(d.keys()) +l.sort() +print(l) + +d = dict.fromkeys([1, 2, 3, 4], 42) +l = list(d.values()) +l.sort() +print(l) + |
