X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2F004_w_cycles.t;fp=t%2F004_w_cycles.t;h=12a4ca855ce9a1b33c64499538712d4c77c8aec4;hb=1e1598d05052f71b0af1451107c352610306471c;hp=5e03c9ac246fd64df02259f5309816f97e8136b7;hpb=5b7ea1fd5ab5a918f17cc1bc0450ddf22d7e37c6;p=gitmo%2FMooseX-Storage.git diff --git a/t/004_w_cycles.t b/t/004_w_cycles.t index 5e03c9a..12a4ca8 100644 --- a/t/004_w_cycles.t +++ b/t/004_w_cycles.t @@ -3,7 +3,7 @@ use strict; use warnings; -use Test::More tests => 16; +use Test::More tests => 18; use Test::Exception; BEGIN { @@ -145,12 +145,13 @@ This test demonstrates two things: my $double = Double->new( 'x' => $ref, 'y' => $ref ); ### currently, the cycle checker's too naive to figure out this is not - ### a problem + ### a problem, pass an empty hashref to the 2nd test to make sure it + ### doesn't warn/die TODO: { local $TODO = "Cycle check is too naive"; my $pack = eval { $double->pack; }; ok( $pack, "Object with 2 references packed" ); - ok( Double->unpack( $pack ), + ok( Double->unpack( $pack || {} ), " And unpacked again" ); }