set, get
[perl-Redis.git] / t / 01-Redis.t
index 1235189..b0c52fc 100755 (executable)
@@ -3,7 +3,7 @@
 use warnings;
 use strict;
 
-use Test::More tests => 4;
+use Test::More tests => 6;
 
 use lib 'lib';
 
@@ -15,4 +15,7 @@ ok( my $o = Redis->new(), 'new' );
 
 ok( $o->ping, 'ping' );
 
+ok( $o->set( foo => 'bar' ), 'set foo' );
+cmp_ok( $o->get( 'foo' ), 'eq', 'bar', 'get foo' );
+
 ok( $o->quit, 'quit' );