in reply to Replace 'no_plan' with fixed number using Test::More when output is random
Something like this (untested)
# Dyn.t use Test::More use Dyn; my @arr = Dyn::get_list(); my $test_count = scalar @arr; plan tests => $test_count; if (@arr) { foreach my $elem (@arr) { like($elem, qr/^\d+$/, q{Expect an integer}); } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Replace 'no_plan' with fixed number using Test::More when output is random
by pemungkah (Priest) on Aug 17, 2007 at 14:54 UTC |