tests/basics/set_pop.py: Sort set before printing for consistent output.

pull/4070/head
Damien George 2018-08-17 15:42:51 +10:00
rodzic 4f9842ad80
commit 96e1fd480d
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -15,4 +15,4 @@ while s:
print(s.pop()) # last pop() should trigger the optimisation
for i in range(N):
s.add(i) # check that we can add the numbers back to the set
print(list(s))
print(sorted(s))