Maybe it's the timezone/jetlag but given "equals" is a commutative operation 
does this really matters® that much?

Will your unit tests behave incorrectly if you just code:

 self assert: actual equals: expected.

?

my 0.0199999....
 
--
Cesar Rabak



Em 21/06/2011 14:16, Sean P. DeNigris < [email protected] > escreveu:
In my unit test, I want to make sure that my output equals the
expectedOutput, but:
 TestCase>>assert: expected equals: actual

It feels wrong to me. It seems that I want to make an assertion about my
class's behavior and I would like to write:
 self assert: output equals: expectedOutput.

What do you all think?

Thanks.
Sean

--
View this message in context: 
http://forum.world.st/assert-equals-feels-backwards-tp3614760p3614760.html
Sent from the Pharo Smalltalk mailing list archive at Nabble.com.



Reply via email to