develooper Front page | perl.qa | Postings from January 2007

Re: Bad test functions in Test::Exception

Thread Previous | Thread Next
From:
chromatic
Date:
January 30, 2007 12:27
Subject:
Re: Bad test functions in Test::Exception
Message ID:
200701301228.06574.chromatic@wgz.org
On Tuesday 30 January 2007 12:18, Nadim Khemir wrote:

> Any of the subroutines could croak. So my point is "is there any point in
> using lives_and" at certain places when it's not used in thousands of other
> places?

Sure -- when calling code that you know throws exceptions under certain 
circumstances, to test that it doesn't throw an exception under other 
circumstances.

-- c

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About