X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=t%2F20-Redis-Hash.t;h=169eda46c072fda184d1db4b06be7b36f722dfad;hb=cc82d8d9e7460b0b8c9f829c77f53e2b17adcba5;hp=687b85c1ee28631d5a3bfbf515b3264664eb5f5f;hpb=d614f74a89501c756b5e6a240995c0aa0295573b;p=perl-Redis.git diff --git a/t/20-Redis-Hash.t b/t/20-Redis-Hash.t index 687b85c..169eda4 100755 --- a/t/20-Redis-Hash.t +++ b/t/20-Redis-Hash.t @@ -3,9 +3,8 @@ use warnings; use strict; -use Test::More tests => 7; +use Test::More tests => 8; use lib 'lib'; -use Data::Dump qw/dump/; BEGIN { use_ok( 'Redis::Hash' ); @@ -21,10 +20,10 @@ ok( ! keys %h, 'empty' ); ok( %h = ( 'foo' => 42, 'bar' => 1, 'baz' => 99 ), '=' ); -is_deeply( [ keys %h ], [ 'bar', 'baz', 'foo' ], 'keys' ); +is_deeply( [ sort keys %h ], [ 'bar', 'baz', 'foo' ], 'keys' ); is_deeply( \%h, { bar => 1, baz => 99, foo => 42, }, 'structure' ); - -diag dump( \%h ); +ok( my $mem = $o->info->{used_memory}, 'info' ); +diag "used memory $mem";