When writing asserts in tests, do you put the actual first or the expected?
The convention seems to be: actual first. But, annoyingly, I need to rearrange them to check if an expected is _in_ an actual which I tend to do a fair amount.
Maybe that's a testing code smell. Or maybe I'm just overthinking this. ๐

![expected = 2
actual = [1, 2, 3]
# this reads well, but expected is first
assert expected in actual
# this seems messy?
assert actual.index(expected) > -1](https://cdn.masto.host/indiewebsocial/media_attachments/files/115/746/197/288/045/351/original/1b81b5060c6968ab.png)