On Tue, 7 Feb 2006, Thomas Healy wrote:
> Hugh,
>
> I will stick to mine... I am a nubie and I understood very little of
> what you just wrote... I am sure as I go along and get more skilled...
> It will start to make sense... But for the new guy (me)... Readability &
> understandability is important...
Yes, but writing less code means less chance to write bugs.
Basically, you want tests to pass unless they cannot. The asserts
determine whether a test is on track to pass. If an assert fails,
Test::Unit does the begin...rescue...end magic for you, and bails
out, and so that one test fails. It then allows the other tests to
be run, in case those bits of code still work.
Does that help? Else, tell me what baffles, and I'll try to explain
differently.
>
> Thanks,
>
> Thom
>
Hugh
_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general