--- Fergal Daly <[EMAIL PROTECTED]> wrote:
> use Test::More no_plan;
> use Test::Deep;
>
> my $expect = {
>name => re(qr/porky/),
>value => code(sub { $_[0] >= 0 && $_[0] < 10 || (0, "out of range
> [0,10)")}),
>spigot_state => 'active',
> };
>
> my $value = {
>name => 'My name i
On 5 Aug 2007, at 17:46, Fergal Daly wrote:
Fixed version is uploaded and is working its way through the pipeline,
Cool, thanks.
--
Andy Armstrong, hexten.net
On 05/08/07, Andy Armstrong <[EMAIL PROTECTED]> wrote:
> On 5 Aug 2007, at 17:07, Fergal Daly wrote:
> > use Test::More no_plan;
> > use Test::Deep;
>
> Lovely, thanks :)
>
> > my $expect = {
> >name => re(qr/porky/),
> >value => code(sub { $_[0] >= 0 && $_[0] < 10 || (0, "out of
> > range
On 5 Aug 2007, at 17:07, Fergal Daly wrote:
use Test::More no_plan;
use Test::Deep;
Lovely, thanks :)
my $expect = {
name => re(qr/porky/),
value => code(sub { $_[0] >= 0 && $_[0] < 10 || (0, "out of
range [0,10)")}),
spigot_state => 'active',
};
my $value = {
name => 'My name
use Test::More no_plan;
use Test::Deep;
my $expect = {
name => re(qr/porky/),
value => code(sub { $_[0] >= 0 && $_[0] < 10 || (0, "out of range [0,10)")}),
spigot_state => 'active',
};
my $value = {
name => 'My name is porky',
value => 11,# <-- fails
I'm sure I've recently seen a test that used something like this:
my $expect = {
name => qr/porky/,
value => sub { $_[0] >= 0 && $_[0] < 10 },
spigot_state => 'active',
};
my $value = {
name => 'My name is porky',
value => 11, # <-- fails here
spigo