projects
/
perl-Redis.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
simple publish script for testing
[perl-Redis.git]
/
t
/
20-Redis-Hash.t
diff --git
a/t/20-Redis-Hash.t
b/t/20-Redis-Hash.t
index
660c8f3
..
3adafbe
100755
(executable)
--- a/
t/20-Redis-Hash.t
+++ b/
t/20-Redis-Hash.t
@@
-5,26
+5,24
@@
use strict;
use Test::More tests => 8;
use lib 'lib';
use Test::More tests => 8;
use lib 'lib';
-use Data::Dump qw/dump/;
BEGIN {
BEGIN {
-
use_ok( 'Redis::Hash'
);
+
use_ok('Redis::Hash'
);
}
}
-ok(
my $o = tie( my %h, 'Redis::Hash', 'test-redis-hash' ), 'tie'
);
+ok(
my $o = tie(my %h, 'Redis::Hash', 'test-redis-hash'), 'tie'
);
-isa_ok(
$o, 'Redis::Hash'
);
+isa_ok(
$o, 'Redis::Hash'
);
$o->CLEAR();
$o->CLEAR();
-ok(
! keys %h, 'empty'
);
+ok(
!keys %h, 'empty'
);
-ok(
%h = ( 'foo' => 42, 'bar' => 1, 'baz' => 99 ), '='
);
+ok(
%h = ('foo' => 42, 'bar' => 1, 'baz' => 99), '='
);
-is_deeply(
[ sort keys %h ], [ 'bar', 'baz', 'foo' ], 'keys'
);
+is_deeply(
[sort keys %h], ['bar', 'baz', 'foo'], 'keys'
);
-is_deeply(
\%h, { bar => 1, baz => 99, foo => 42, }, 'structure'
);
+is_deeply(
\%h, {bar => 1, baz => 99, foo => 42,}, 'structure'
);
-ok( my $mem = $o->info->{used_memory}, 'info' );
-diag "used memory $mem";
+ok(my $mem = $o->info->{used_memory}, 'info');