Re: Test label - contents

2004-12-07 Thread Ovid
--- Tim Bunce <[EMAIL PROTECTED]> wrote: > Changing the subject slightly, is there any guidance on what people > should write in the name/comment/label? > > I ask because several times I've been puzzled by a test failure > where the message printed is ambiguous. Compare these two: > > not o

Re: Test label - contents

2004-12-07 Thread Andy Lester
On Tue, Dec 07, 2004 at 12:48:01PM +, Tim Bunce ([EMAIL PROTECTED]) wrote: > I ask because several times I've been puzzled by a test failure > where the message printed is ambiguous. Compare these two: > > not ok 42 - is red > > not ok 42 - should be red I always write tests and

Re: Test label - contents

2004-12-07 Thread Geoffrey Young
> Changing the subject slightly, is there any guidance on what people > should write in the name/comment/label? > > I ask because several times I've been puzzled by a test failure > where the message printed is ambiguous. Compare these two: > > not ok 42 - is red > > not ok 42 - sho

Re: Test label - contents

2004-12-07 Thread Tim Bunce
On Mon, Dec 06, 2004 at 10:28:45PM -0600, Andy Lester wrote: > I think even better than > > ok( $expr, "name" ); > or > ok( $expr, "comment" ); > is > ok( $expr, "label" ); > > RJBS points out that "comment" implies "not really worth doing", and I > still don't like "name" because it impli