1
package HTML::Widgets::NavMenu::Test::Util;
12
@EXPORT = qw(compare_string_arrays);
14
sub compare_string_arrays
18
my $len_cmp = (@$arr1 <=> @$arr2);
21
print STDERR "Len is not the same: Expected " . scalar(@$arr1) . " vs. Result " . scalar(@$arr2) . "\n";
25
for($i=0;$i<@$arr1;$i++)
27
my $item_cmp = $arr1->[$i] cmp $arr2->[$i];
30
print STDERR "Item[$i] is not the same:\nExpected: $arr1->[$i]\nResult: $arr2->[$i]\n";