/[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 3 by dpavlin, Sat Mar 21 21:40:53 2009 UTC revision 4 by dpavlin, Sat Mar 21 21:53:15 2009 UTC
# Line 3  Line 3 
3  use warnings;  use warnings;
4  use strict;  use strict;
5    
6  use Test::More tests => 6;  use Test::More tests => 93;
7    
8  use lib 'lib';  use lib 'lib';
9    
# Line 18  ok( $o->ping, 'ping' ); Line 18  ok( $o->ping, 'ping' );
18  ok( $o->set( foo => 'bar' ), 'set foo' );  ok( $o->set( foo => 'bar' ), 'set foo' );
19  cmp_ok( $o->get( 'foo' ), 'eq', 'bar', 'get foo' );  cmp_ok( $o->get( 'foo' ), 'eq', 'bar', 'get foo' );
20    
21    ok( ! $o->get( 'non-existant' ), 'get non-existant' );
22    
23    foreach ( 0 .. 42 ) {
24            ok(     $o->set( "key-$_" => $_ ),           "set key-$_" );
25            cmp_ok( $o->get( "key-$_"       ), 'eq', $_, "get key-$_" );
26    }
27    
28  ok( $o->quit, 'quit' );  ok( $o->quit, 'quit' );

Legend:
Removed from v.3  
changed lines
  Added in v.4

  ViewVC Help
Powered by ViewVC 1.1.26