/[Redis.pre-github]/t/10-Redis-List.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/10-Redis-List.t

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

revision 29 by dpavlin, Sun Mar 22 16:16:11 2009 UTC revision 49 by dpavlin, Mon Mar 23 11:38:56 2009 UTC
# Line 3  Line 3 
3  use warnings;  use warnings;
4  use strict;  use strict;
5    
6  use Test::More tests => 9;  use Test::More tests => 8;
7  use lib 'lib';  use lib 'lib';
8  use Data::Dump qw/dump/;  use Data::Dump qw/dump/;
9    
# Line 17  ok( my $o = tie( @a, 'Redis::List', 'tes Line 17  ok( my $o = tie( @a, 'Redis::List', 'tes
17    
18  isa_ok( $o, 'Redis::List' );  isa_ok( $o, 'Redis::List' );
19    
20  ok( $o->CLEAR, 'CLEAR' );  $o->CLEAR;
21    
22  ok( ! @a, 'empty list' );  ok( ! @a, 'empty list' );
23    
# Line 27  is_deeply( [ @a ], [ 'foo', 'bar', 'baz' Line 27  is_deeply( [ @a ], [ 'foo', 'bar', 'baz'
27  ok( push( @a, 'push' ), 'push' );  ok( push( @a, 'push' ), 'push' );
28  is_deeply( [ @a ], [ 'foo', 'bar', 'baz', 'push' ] );  is_deeply( [ @a ], [ 'foo', 'bar', 'baz', 'push' ] );
29    
30  diag dump( @a );  #diag dump( @a );

Legend:
Removed from v.29  
changed lines
  Added in v.49

  ViewVC Help
Powered by ViewVC 1.1.26