X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2F020_basic_yaml.t;h=a795783b20da2b4a5e799a9cb06e79a0355d7c0e;hb=619ab942be0a8bd8f530c57ca5b0c8d833cdc89b;hp=1cb51379b6d9316d621270621f02779b6eef48ce;hpb=0c8aa61760399d65724bb75b0735840bba89414d;p=gitmo%2FMooseX-Storage.git diff --git a/t/020_basic_yaml.t b/t/020_basic_yaml.t index 1cb5137..a795783 100644 --- a/t/020_basic_yaml.t +++ b/t/020_basic_yaml.t @@ -4,6 +4,7 @@ use strict; use warnings; use Test::More; +use Test::Deep; use Test::Requires { 'YAML::Any' => 0.01, # skip all if not installed @@ -53,8 +54,8 @@ BEGIN { is( $bar->number, 10, '... got the right number' ); is( $bar->string, 'foo', '... got the right string' ); is( $bar->float, 10.5, '... got the right float' ); - is_deeply( $bar->array, [ 1 .. 10 ], '... got the right array' ); - is_deeply( + cmp_deeply( $bar->array, [ 1 .. 10 ], '... got the right array' ); + cmp_deeply( $bar->hash, { map { $_ => undef } ( 1 .. 10 ) }, '... got the right hash'