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
......@@ -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:
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment