It's not part of Test::More itself, but Test::Exception's dies_ok method should help:
dies_ok { $a->f1 } 'passing no arguments to f1 dies';
For more information about the different testing modules available, see the Testing Modules section of Perl Quality Assurance Projects.
In reply to Re: Test::More usage to test functions that die
by tomhukins
in thread Test::More usage to test functions that die
by mkirank
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |