X-Git-Url: https://git.saurik.com/redis.git/blobdiff_plain/5762b7f0f8d33eda021da908b6ddced684a2ba05..1259672feb4fcad189d413a341745990a844feda:/client-libraries/perl/t/20-Redis-Hash.t diff --git a/client-libraries/perl/t/20-Redis-Hash.t b/client-libraries/perl/t/20-Redis-Hash.t deleted file mode 100755 index 7bd9dafc..00000000 --- a/client-libraries/perl/t/20-Redis-Hash.t +++ /dev/null @@ -1,30 +0,0 @@ -#!/usr/bin/perl - -use warnings; -use strict; - -use Test::More tests => 7; -use lib 'lib'; -use Data::Dump qw/dump/; - -BEGIN { - use_ok( 'Redis::Hash' ); -} - -ok( my $o = tie( my %h, 'Redis::Hash', 'test-redis-hash' ), 'tie' ); - -isa_ok( $o, 'Redis::Hash' ); - -$o->CLEAR(); - -ok( ! keys %h, 'empty' ); - -ok( %h = ( 'foo' => 42, 'bar' => 1, 'baz' => 99 ), '=' ); - -is_deeply( [ sort keys %h ], [ 'bar', 'baz', 'foo' ], 'keys' ); - -is_deeply( \%h, { bar => 1, baz => 99, foo => 42, }, 'structure' ); - - -#diag dump( \%h ); -