Maybe just renaming it to assertThatResultOf: equals: would help?
On 2024-02-01, at 10:16 AM, Eliot Miranda eliot.miranda@gmail.com wrote:
I *hate* assert:equals: for this very reason. I wonder if TestCase could use a specialized compiler that would add compile-time check and warn the programmer if they get things the wrong way round. Of course it’s non-trivial to detect constant expressions in general, but one might be able to catch 95% of goofs cheaply.
tim -- tim Rowledge; tim@rowledge.org; http://www.rowledge.org/tim Semolina - a system of signalling with pudding.