Try this:
use Test::More tests => 1; use Dyn; use Data::Dumper; my @arr = Dyn::get_list(); is scalar(grep { qr/^\d+$/ } @arr), scalar(@arr), 'All elements from get_list() should be integers' or diag Dumper(\@arr);
Cheers,
Ovid
New address of my CGI Course.
In reply to Re: Replace 'no_plan' with fixed number using Test::More when output is random
by Ovid
in thread Replace 'no_plan' with fixed number using Test::More when output is random
by andreas1234567
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |