/[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 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 => 9;  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::List' );          use_ok( 'Redis::List' );
# Line 17  ok( my $o = tie( @a, 'Redis::List', 'tes Line 16  ok( my $o = tie( @a, 'Redis::List', 'tes
16    
17  isa_ok( $o, 'Redis::List' );  isa_ok( $o, 'Redis::List' );
18    
19  ok( $o->CLEAR, 'CLEAR' );  $o->CLEAR;
20    
21  ok( ! @a, 'empty list' );  ok( ! @a, 'empty list' );
22    
# Line 27  is_deeply( [ @a ], [ 'foo', 'bar', 'baz' Line 26  is_deeply( [ @a ], [ 'foo', 'bar', 'baz'
26  ok( push( @a, 'push' ), 'push' );  ok( push( @a, 'push' ), 'push' );
27  is_deeply( [ @a ], [ 'foo', 'bar', 'baz', 'push' ] );  is_deeply( [ @a ], [ 'foo', 'bar', 'baz', 'push' ] );
28    
 diag dump( @a );  

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

  ViewVC Help
Powered by ViewVC 1.1.26