From: Robert Dober Date: 2006-03-25T23:06:46+09:00 Subject: Re: Newby Maze solution ------=_Part_18429_10653999.1143295588729 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On 3/25/06, Benjohn Barnes wrote: > > > On 25 Mar 2006, at 10:57, Alex Combas wrote: > > def test_tracker > > assert_equal @t.track(@maze,27),28,"doesnt track" > > assert_equal @t.track(@maze,28),29,"doesnt track" > > end > > > > * Showing me that 'assert_equal' (and the others, I'm sure) will > accept a third descriptive argument - I didn't know that, and I can > see it's useful! It seems worth to notice that assert_equal will expect the test value to go *after* the expected value. It seemed counter intuitive to me too at first, so be warned. assert_equal 1+1, 3, "arithmethic polarity" will tell <2> expected but was <3> obviously the contrary of what you want. Cheers Robert -- Deux choses sont infinies : l'univers et la b=EAtise humaine ; en ce qui concerne l'univers, je n'en ai pas acquis la certitude absolue. - Albert Einstein ------=_Part_18429_10653999.1143295588729--