From: Jos Boumans Date: Wed, 24 Jun 2009 14:52:16 +0000 (+0200) Subject: * quell warning X-Git-Tag: 0.20~12 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=1e1598d05052f71b0af1451107c352610306471c;p=gitmo%2FMooseX-Storage.git * quell warning --- 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" ); }