Daniel Moore
6/12/2009 11:29:00 PM
On Fri, Jun 12, 2009 at 4:03 PM, Robert Dober<robert.dober@gmail.com> wrote=
:
> On Fri, Jun 12, 2009 at 8:34 PM, Daniel Moore<yahivin@gmail.com> wrote:
>> On Fri, Jun 12, 2009 at 11:06 AM, <brabuhr@gmail.com> wrote:
>>> 2009/6/12 Daniel Moore <yahivin@gmail.com>:
>>>> I have attached the following test suite for your convenience:
>>>> =A0 =A0 =A0 =A0assert_equal Matrix.rotate(square), square_rotated
>>>> =A0 =A0 =A0 =A0assert_equal Matrix.rotate(rectangle), rectangle_rotate=
d
>>>
>>> Shouldn't that be?:
>>>
>>> assert_equal square_rotated, Matrix.rotate(square)
>>> assert_equal rectangle_rotated, Matrix.rotate(rectangle)
>>>
>>> :-)
>>>
>>
>> The docs on TestUnit specify:
>>
>> =A0 =A0assert_equal(expected, actual, message=3Dnil)
>>
> Wait a second, maybe I am completely confused, but that is exactly
> what brabuhr said no?,...
> But as all my tests pass it does not matter ;).
>
> This somehow coincides with the specs I have attached, with Daniel's
> kind permission. It is interesting to
> notice how each of the three test tools avoids that kind of confusion
> in three different ways.
>
> Cheers
> Robert
>
Brahbur and Robert are right on the order of the test arguments, my mistake=