Re: An active is_deeply - did I imagine it?

2007-08-05 Thread Ovid
--- 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

Re: An active is_deeply - did I imagine it?

2007-08-05 Thread Andy Armstrong
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

Re: An active is_deeply - did I imagine it?

2007-08-05 Thread Fergal Daly
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

Re: An active is_deeply - did I imagine it?

2007-08-05 Thread Andy Armstrong
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

Re: An active is_deeply - did I imagine it?

2007-08-05 Thread Fergal Daly
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

An active is_deeply - did I imagine it?

2007-08-05 Thread Andy Armstrong
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