X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2F04_array.t;h=94251f87ec4c498571686d109076a61fa803a5d6;hb=b176a921890e7c236db7fe53f793f2665500d18d;hp=73982655a9cd673e7cb171d625d501bb9a398802;hpb=2875683c1055e16c4ac79b6e79474ce0d1413848;p=dbsrgits%2FDBM-Deep.git diff --git a/t/04_array.t b/t/04_array.t index 7398265..94251f8 100644 --- a/t/04_array.t +++ b/t/04_array.t @@ -58,7 +58,7 @@ is( $db->[-2], $db->[3], "-2nd index is 3rd index" ); is( $db->[-3], $db->[2], "-3rd index is 2nd index" ); is( $db->[-4], $db->[1], "-4th index is 1st index" ); is( $db->[-5], $db->[0], "-5th index is 0th index" ); -is( $db->[-6], undef, "-6th index is undef" ); +{ my $v = $db->[-6]; is( $v, undef, "-6th index is undef" ); } is( $db->length, 5, "... and we have five elements after abortive -6 index lookup" ); $db->[-1] = 'elem4.1';