Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Tree: 9c45b7d610
Fetching contributors…

Cannot retrieve contributors at this time

35 lines (29 sloc) 0.628 kB
use v6;
BEGIN { @*INC.push('t', 'lib') };
use Redis;
use Test;
my @new_tasks =
\() => {
'host' => '127.0.0.1',
'port' => 6379,
}
, \('192.168.0.1') => {
'host' => '192.168.0.1',
'port' => 6379,
}
, \('192.168.0.1:6379') => {
'host' => '192.168.0.1',
'port' => 6379,
}
, \('/path/to/redis.sock') => {
'sock' => '/path/to/redis.sock',
}
;
plan [+] @new_tasks.map({ $_.value.elems });
for @new_tasks -> $p {
my $r = Redis.new(|$p.key);
$p.value.map({
is_deeply $r."{.key}"(), .value;
});
}
# vim: ft=perl6
Jump to Line
Something went wrong with that request. Please try again.