On Thu, Dec 02, 2004 at 10:40:09AM -0600, Andy Lester wrote: > I have a modest proposal. > > Stop calling the 2nd parm to ok() the "name". It's really a comment. > > ok( $is_happy, "Make sure the doodad is wingoed" ); > > That text string is not a "name" in the sense of naming a test, > especially since it's entirely optional. You can't do any lookup to say > "go find the test named Whatever".
Sure you can. Open the test file in an editor, search for 'doodad is wingoed'. This was the original intention of the test names. So you weren't stuck counting which test in the file was #23. I still do this. In this sense I just consider it to be a uniquely identifying label. Except it isn't always unique (think looped tests). > Let's start calling it the comment, in all of our testing modules, > starting now. I give this a hearty shrug of indifference. Patches to Test::More welcome. -- Michael G Schwern [EMAIL PROTECTED] http://www.pobox.com/~schwern/ Plus I remember being impressed with Ada because you could write an infinite loop without a faked up condition. The idea being that in Ada the typical infinite loop would be normally be terminated by detonation. -- Larry Wall in <[EMAIL PROTECTED]>