/[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 27 by dpavlin, Sun Mar 22 13:44:19 2009 UTC revision 28 by dpavlin, Sun Mar 22 15:02:42 2009 UTC
# Line 3  Line 3 
3  use warnings;  use warnings;
4  use strict;  use strict;
5    
6  use Test::More tests => 71;  use Test::More tests => 75;
7    
8  use lib 'lib';  use lib 'lib';
9    
# Line 26  ok( $o->set( foo => 'baz' ), 'set foo => Line 26  ok( $o->set( foo => 'baz' ), 'set foo =>
26    
27  cmp_ok( $o->get( 'foo' ), 'eq', 'baz', 'get foo = baz' );  cmp_ok( $o->get( 'foo' ), 'eq', 'baz', 'get foo = baz' );
28    
29    ok( $o->set( 'test-undef' => 42 ), 'set test-undef' );
30    ok( $o->set( 'test-undef' => undef ), 'set undef' );
31    ok( ! defined $o->get( 'test-undef' ), 'get undef' );
32    diag $o->exists( 'test-undef' );
33    ok( $o->exists( 'test-undef' ), 'exists undef' );
34    
35  $o->del('non-existant');  $o->del('non-existant');
36    
37  ok( ! $o->exists( 'non-existant' ), 'exists non-existant' );  ok( ! $o->exists( 'non-existant' ), 'exists non-existant' );

Legend:
Removed from v.27  
changed lines
  Added in v.28

  ViewVC Help
Powered by ViewVC 1.1.26