3 ms·
Or even better (since we're testing against an oracle value anyway): assert sorted(result) == ['a', 'b']
by BerislavLopac 6y ago
Or even better (since we're testing against an oracle value anyway):
assert sorted(result) == ['a', 'b']
- oli5679 6y agoTrue you can just sort your oracle values once/in your head this is a valid point. Reasonable to prefer this way!