diff options
author | Damien George <damien.p.george@gmail.com> | 2016-04-15 16:28:33 +0100 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2016-04-15 16:28:33 +0100 |
commit | 2c883c5ab7722c2309da9d3121cf253105da1eb1 (patch) | |
tree | ac0820dcd399c82653a90155a488eeddbb6cacd1 /tests/basics/dict1.py | |
parent | 00137b8c11eb94bbf97d5276d9c4e879ea75fb1d (diff) | |
download | micropython-2c883c5ab7722c2309da9d3121cf253105da1eb1.tar.gz micropython-2c883c5ab7722c2309da9d3121cf253105da1eb1.zip |
tests: Fix dict1.py so it doesn't rely on the order of dict elems.
Diffstat (limited to 'tests/basics/dict1.py')
-rw-r--r-- | tests/basics/dict1.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/basics/dict1.py b/tests/basics/dict1.py index f189266b4d..c70ca588a7 100644 --- a/tests/basics/dict1.py +++ b/tests/basics/dict1.py @@ -6,10 +6,10 @@ d[2] = 123 print(d) d = {1:2} d[3] = 3 -print(d) +print(len(d), d[1], d[3]) d[1] = 0 -print(d) -print(d[1]) +print(len(d), d[1], d[3]) +print(str(d) == '{1: 0, 3: 3}' or str(d) == '{3: 3, 1: 0}') x = 1 while x < 100: |