Re: Test::More::diag()

2001-12-10 Thread Michael G Schwern

On Mon, Dec 10, 2001 at 11:19:21PM +, Adrian Howard wrote:
> > I'm planning on using diag().
> > 
> > ok( $foo == $bar ) || diag 'blah blah';
> > 
> > it has nice mnemonics with:
> > 
> > open(FOO, "bar") || die 'blah blah';
> > 
> > "ok or diag" "open or die"
> > 
> > Thoughts?
> 
> Little to short for my tastes my first expansion was "diagonal" rather
> than "diagnostic".

Its supposed to be short, you're likely to type it a lot.


-- 

Michael G. Schwern   <[EMAIL PROTECTED]>http://www.pobox.com/~schwern/
Perl Quality Assurance  <[EMAIL PROTECTED]> Kwalitee Is Job One
Follow me to certain death!
http://www.unamerican.com/



Re: Test::More::diag()

2001-12-10 Thread Adrian Howard

Hi,

Newbie with Test::More --- and loving it :-)

on 10/12/01 12:04 pm, Michael G Schwern at [EMAIL PROTECTED] wrote:

> Its been on the Test::More todo list to have a blessed way to do:
> 
> print STDOUT "# here's some extra info\n";
> 
> I'm planning on using diag().
> 
> ok( $foo == $bar ) || diag 'blah blah';
> 
> it has nice mnemonics with:
> 
> open(FOO, "bar") || die 'blah blah';
> 
> "ok or diag" "open or die"
> 
> Thoughts?

Little to short for my tastes my first expansion was "diagonal" rather
than "diagnostic".

How about "comment" ?

Adrian
--
e. [EMAIL PROTECTED], t. 01929 550720, f. 0870 131 3033