This is a live mirror of the Perl 5 development currently hosted at
https://github.com/perl/perl5
https://perl5.git.perl.org
/
perl5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
56da48f
)
made eq_array in t/test.pl handle undef values better
author
Dave Mitchell
<davem@fdisolutions.com>
Mon, 9 Aug 2004 18:28:33 +0000
(18:28 +0000)
committer
Dave Mitchell
<davem@fdisolutions.com>
Mon, 9 Aug 2004 18:28:33 +0000
(18:28 +0000)
p4raw-id: //depot/perl@23208
t/test.pl
patch
|
blob
|
blame
|
history
diff --git
a/t/test.pl
b/t/test.pl
index
56bf355
..
a35eb83
100644
(file)
--- a/
t/test.pl
+++ b/
t/test.pl
@@
-295,6
+295,9
@@
sub eq_array {
my ($ra, $rb) = @_;
return 0 unless $#$ra == $#$rb;
for my $i (0..$#$ra) {
+ next if !defined $ra->[$i] && !defined $rb->[$i];
+ return 0 if !defined $ra->[$i];
+ return 0 if !defined $rb->[$i];
return 0 unless $ra->[$i] eq $rb->[$i];
}
return 1;