X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=scpubgit%2FObject-Remote.git;a=blobdiff_plain;f=t%2Ftied.t;h=696f07c5ef6aabf18a4de7d463e2aeac8c7e7923;hp=0cca1425411346cf6a2333d5113d5bc86b2ae000;hb=55c0d0209fa9d9265ff178f54ae9fe5fdddef3c1;hpb=5ccce2d5c1fb651f83c73c811069003e4a591a53 diff --git a/t/tied.t b/t/tied.t index 0cca142..696f07c 100644 --- a/t/tied.t +++ b/t/tied.t @@ -4,11 +4,11 @@ use Test::More; use lib 't/lib'; use Tie::Array; -use Tie::Hash; +use Tie::Hash; $ENV{OBJECT_REMOTE_TEST_LOGGER} = 1; -use Object::Remote; +use Object::Remote; use ORTestTiedRemote; my @test_data = qw(1 5 10 30 80); @@ -22,7 +22,7 @@ my $remote = ORTestTiedRemote->new::on($conn); isa_ok($remote, 'Object::Remote::Proxy'); my $remote_array = $remote->array; -my $remote_hash = $remote->hash; +my $remote_hash = $remote->hash; is(ref($remote_array), 'ARRAY', 'Array ref is array ref'); is(ref(tied(@$remote_array)), 'Object::Remote::Proxy', 'Array is tied to proxy object'); @@ -37,9 +37,7 @@ is_deeply($remote_hash, { akey => 'a value' }, 'Hash is initialized properly'); %$remote_hash = (); do { my $i = 0; map { $remote_hash->{++$i} = $_ } @test_data }; -is($remote->sum_hash, $test_sum, 'Sum of hash values matches sum of test data'); +is($remote->sum_hash, $test_sum, 'Sum of hash values matches sum of test data'); done_testing; - - \ No newline at end of file