From: Michael Gorsuch Date: 2006-03-25T23:11:37+09:00 Subject: Re: Newby Maze solution Not to hijack this thread, but can any of you recommend a specific resource to learn more about TDD? I'm using by own breed, but I KNOW that there are better ways to approach it. Thanks, Michael On 3/25/06, Robert Dober wrote: > 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�tise humaine ; en ce qui > concerne l'univers, je n'en ai pas acquis la certitude absolue. > > - Albert Einstein > >