in reply to Replace 'no_plan' with fixed number using Test::More when output is random
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Replace 'no_plan' with fixed number using Test::More when output is random
by moritz (Cardinal) on Aug 17, 2007 at 08:49 UTC |