/[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 43 by dpavlin, Sun Mar 22 20:04:17 2009 UTC revision 44 by dpavlin, Mon Mar 23 09:22:30 2009 UTC
# Line 21  ok( ! keys %h, 'empty' ); Line 21  ok( ! keys %h, 'empty' );
21    
22  ok( %h = ( 'foo' => 42, 'bar' => 1, 'baz' => 99 ), '=' );  ok( %h = ( 'foo' => 42, 'bar' => 1, 'baz' => 99 ), '=' );
23    
24  is_deeply( [ keys %h ], [ 'bar', 'baz', 'foo' ], 'keys' );  is_deeply( [ sort keys %h ], [ 'bar', 'baz', 'foo' ], 'keys' );
25    
26  is_deeply( \%h, { bar => 1, baz => 99, foo => 42, }, 'structure' );  is_deeply( \%h, { bar => 1, baz => 99, foo => 42, }, 'structure' );
27    

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

  ViewVC Help
Powered by ViewVC 1.1.26