/[Redis.pre-github]/t/20-Redis-Hash.t
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /t/20-Redis-Hash.t

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 44 by dpavlin, Mon Mar 23 09:22:30 2009 UTC revision 63 by dpavlin, Mon Sep 14 11:37:25 2009 UTC
# Line 3  Line 3 
3  use warnings;  use warnings;
4  use strict;  use strict;
5    
6  use Test::More tests => 7;  use Test::More tests => 8;
7  use lib 'lib';  use lib 'lib';
 use Data::Dump qw/dump/;  
8    
9  BEGIN {  BEGIN {
10          use_ok( 'Redis::Hash' );          use_ok( 'Redis::Hash' );
# Line 25  is_deeply( [ sort keys %h ], [ 'bar', 'b Line 24  is_deeply( [ sort keys %h ], [ 'bar', 'b
24    
25  is_deeply( \%h, { bar => 1, baz => 99, foo => 42, }, 'structure' );  is_deeply( \%h, { bar => 1, baz => 99, foo => 42, }, 'structure' );
26    
27    ok( my $mem = $o->info->{used_memory}, 'info' );
28  diag dump( \%h );  diag "used memory $mem";
29    

Legend:
Removed from v.44  
changed lines
  Added in v.63

  ViewVC Help
Powered by ViewVC 1.1.26