On Feb 1, 2024, at 11:13 AM, Tim Rowledge tim@rowledge.org wrote:
Maybe just renaming it to assertThatResultOf: equals: would help?
+1/2,
assertResultOf: is:
They may have to be typed and have to fit on the page. Brevity is a virtue if it doesn’t hurt readability.
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.