Skip to content

Commit

Permalink
output debugging when a test fails
Browse files Browse the repository at this point in the history
  • Loading branch information
ruz committed Oct 25, 2011
1 parent 0c4dac2 commit ee0a803
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion t/custom-fields/ipv6.t
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,8 @@ diag "check that IPs in messages don't add duplicates" if $ENV{'TEST_VERBOSE'};
my %has;
$has{ $_->Content }++ foreach @{ $values->ItemsArrayRef };
is(scalar values %has, 1, "one IP were added");
ok(!grep( $_ != 1, values %has ), "no duplicated values");
ok(!grep( $_ != 1, values %has ), "no duplicated values")
or diag "duplicates: ". join ',', grep $has{$_}>1, keys %has;
ok($has{ $valid{ 'abcd::192.168.1.1' } }, "IP is there")
or diag "but has values ". join ", ", keys %has;
}
Expand Down

0 comments on commit ee0a803

Please sign in to comment.