Re: tesing exceptions of Error.pm

2003-11-27 Thread Andy Lester
How am I going to test this ? Take a look at Test::Warn for warnings, and Test::Exception for errors. I think qa.perl.org needs a listing of Test::* modules so that people know what's available. xoa -- Andy Lester [EMAIL PROTECTED], AIM:petdance http://petdance.com/ http://use.perl.org/~petdanc

tesing exceptions of Error.pm

2003-11-27 Thread Gabor Szabo
Hi, in a code I am writing right now http://yapcom.pti.co.il/ I used to croak from functions deep down. When testing for such errors I used code like this in my test script: eval { f(); # will croak }; like($@, qr/Bad thing happened/, 'successfully tested bad thing'); Now I am trying