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

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

revision 12 by dpavlin, Sat Mar 21 23:23:37 2009 UTC revision 14 by dpavlin, Sat Mar 21 23:36:26 2009 UTC
# Line 3  Line 3 
3  use warnings;  use warnings;
4  use strict;  use strict;
5    
6  use Test::More tests => 48;  use Test::More tests => 52;
7    
8  use lib 'lib';  use lib 'lib';
9    
# Line 66  cmp_ok( $o->type('foo'), 'eq', 'string', Line 66  cmp_ok( $o->type('foo'), 'eq', 'string',
66  cmp_ok( $o->keys('key-*'), '==', $key_next + 1, 'key-*' );  cmp_ok( $o->keys('key-*'), '==', $key_next + 1, 'key-*' );
67  is_deeply( [ $o->keys('key-*') ], [ @keys ], 'keys' );  is_deeply( [ $o->keys('key-*') ], [ @keys ], 'keys' );
68    
69    ok( my $key = $o->randomkey, 'randomkey' );
70    diag "key: $key";
71    
72    ok( $o->rename( $key, 'test-renamed' ), 'rename' );
73    ok( $o->exists( 'test-renamed' ), 'exists test-renamed' );
74    
75    eval { $o->rename( $o->randomkey, 'test-renamed', 1 ) };
76    ok( $@, 'rename to existing key' );
77    
78  ok( $o->quit, 'quit' );  ok( $o->quit, 'quit' );

Legend:
Removed from v.12  
changed lines
  Added in v.14

  ViewVC Help
Powered by ViewVC 1.1.26