throws_ok takes a code ref as the first parameter. Try:
throws_ok (sub {main ()}, qr/Usage:/, 'main () should give a usage err +or without any arguments');
In reply to Re: testing a standalone script with parameters
by GrandFather
in thread testing a standalone script with parameters
by chexmix
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |