[Chicago-talk] Test::More and Die

Andy Lester andy at petdance.com
Wed Nov 19 23:45:12 CST 2003

> So if I have a test that I want to carp or die, like I would normally 
> if
> "really" wrong input was supplied, how can I perform that test (i.e. 
> supply
> wrong data that would normally make my module error out) and continue 
> with
> the other tests?

Take a look at Test::Warn, which traps and checks for warnings, and 
Test::Exception, which traps and checks for dying.


Andy Lester
andy at petdance.com, AIM:petdance
http://petdance.com/ http://use.perl.org/~petdance/

More information about the Chicago-talk mailing list