test contructor with server argument
[perl-Redis.git] / t / 01-Redis.t
index ddb3da6..cc8d95b 100755 (executable)
@@ -3,7 +3,7 @@
 use warnings;
 use strict;
 
-use Test::More tests => 106;
+use Test::More tests => 108;
 use Data::Dump qw/dump/;
 
 use lib 'lib';
@@ -16,6 +16,7 @@ ok( my $o = Redis->new(), 'new' );
 
 ok( $o->ping, 'ping' );
 
+ok( $o = Redis->new( server => 'localhost:6379' ), 'new with server' );
 
 diag "Commands operating on string values";
 
@@ -182,6 +183,7 @@ diag "shutdown not tested";
 diag "Remote server control commands";
 
 ok( my $info = $o->info, 'info' );
+isa_ok( $info, 'HASH' );
 diag dump( $info );
 
 diag "Connection handling";