[Cuis-dev] Test error message wrongly formatted

Juan Vuletich juan at cuis.st
Sun Jul 23 13:12:38 PDT 2023


Hi Hilaire,

On 7/23/2023 8:07 AM, Hilaire Fernandes via Cuis-dev wrote:
>
> Hi,
>
> IMHO, In the method below argument names should be reversed
>
> TestCase>>assert: *expected* equals: *actual*
>     self
>         assert: expected = actual
>         description: [ self comparingStringBetween: expected and: actual ]
>
>
> I read the method
>
> TestCase>>assert: actual equalsExpected: expected but it
>
>
> but it is odd and confusing to have both
>
>
> Hilaire
>

I also think that #assert:equals: is ambiguous and somewhat confusing. 
I'm not sure if removing it is a good decision, it could break a lot of 
code for a very minor gain in consistency. Perhaps a method comment 
recommending the use of #assert:equalsExpected: ?

Thanks,

-- 
Juan Vuletich
cuis.st
github.com/jvuletich
researchgate.net/profile/Juan-Vuletich
independent.academia.edu/JuanVuletich
patents.justia.com/inventor/juan-manuel-vuletich
linkedin.com/in/juan-vuletich-75611b3
twitter.com/JuanVuletich

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20230723/e9610144/attachment.htm>


More information about the Cuis-dev mailing list