From: Daniel Moore Date: 2009-06-13T08:28:42+09:00 Subject: Re: [QUIZ] Matrix Rotator (#209) On Fri, Jun 12, 2009 at 4:03 PM, Robert Dober wrote: > On Fri, Jun 12, 2009 at 8:34 PM, Daniel Moore wrote: >> On Fri, Jun 12, 2009 at 11:06 AM, wrote: >>> 2009/6/12 Daniel Moore : >>>> I have attached the following test suite for your convenience: >>>>        assert_equal Matrix.rotate(square), square_rotated >>>>        assert_equal Matrix.rotate(rectangle), rectangle_rotated >>> >>> Shouldn't that be?: >>> >>> assert_equal square_rotated, Matrix.rotate(square) >>> assert_equal rectangle_rotated, Matrix.rotate(rectangle) >>> >>> :-) >>> >> >> The docs on TestUnit specify: >> >>    assert_equal(expected, actual, message=nil) >> > 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. -- -Daniel http://rubyquiz.strd6.com