Hi Sawyer, On Thu, 12 Jul 2012 23:15:31 +0300 sawyer x <[email protected]> wrote:
> On Thu, Jul 12, 2012 at 9:15 PM, ynon perek <[email protected]> wrote: > > > > > And thanks for Test::Trap - up until now I evaled and tested for ok($@). > > > > To test exceptions, you should be using Test::Fatal. Well, I was also aware of https://metacpan.org/module/Test::Exception , but https://metacpan.org/module/Test::Fatal aims to be a better (for some aspects of better) alternative, as it mentions in the POD. CPAN is constantly in flux. You are right that you should not use Test::Trap if all you want to know is if an exception was thrown, but it traps a lot of output (stdout, stderr, exit code, warnings, exceptions) very nicely, and so I like using it. Regards, Shlomi Fish -- ----------------------------------------------------------------- Shlomi Fish http://www.shlomifish.org/ What Makes Software Apps High Quality - http://shlom.in/sw-quality Jewish Atheists are the only true Atheists. They beat the hell out of Goy Atheists. Please reply to list if it's a mailing list post - http://shlom.in/reply . _______________________________________________ Perl mailing list [email protected] http://mail.perl.org.il/mailman/listinfo/perl
