Skip to content
Snippets Groups Projects
Commit 2c883c5a authored by Damien George's avatar Damien George
Browse files

tests: Fix dict1.py so it doesn't rely on the order of dict elems.

parent 00137b8c
Branches
No related tags found
No related merge requests found
...@@ -6,10 +6,10 @@ d[2] = 123 ...@@ -6,10 +6,10 @@ d[2] = 123
print(d) print(d)
d = {1:2} d = {1:2}
d[3] = 3 d[3] = 3
print(d) print(len(d), d[1], d[3])
d[1] = 0 d[1] = 0
print(d) print(len(d), d[1], d[3])
print(d[1]) print(str(d) == '{1: 0, 3: 3}' or str(d) == '{3: 3, 1: 0}')
x = 1 x = 1
while x < 100: while x < 100:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment