On Tue May 13 15:32:02 2014, SREZIC wrote:
Show quoted text> The pass/fail pattern as visible in
>
http://matrix.cpantesters.org/?dist=Math-String suggests that the test
> suite and/or the module has problems with the hash randomization
> implementation invented between perl 5.17.0 and 5.18.0.
>
> Regards,
> Slaven
The diagnostic is spot on; here's a patch to fix the issue.
From 10fe5f2f58d1ee9a8720c6dd8966b328f17fdd36 Mon Sep 17 00:00:00 2001
From: Brian Fraser <fraserbn@gmail.com>
Date: Sun, 27 Jul 2014 13:18:26 +0200
Subject: [PATCH] Hash randomization fix
---
lib/Math/String/Charset/Grouped.pm | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/Math/String/Charset/Grouped.pm b/lib/Math/String/Charset/Grouped.pm
index 618effd..855c76e 100644
--- a/lib/Math/String/Charset/Grouped.pm
+++ b/lib/Math/String/Charset/Grouped.pm
@@ -187,7 +187,7 @@ sub dump
my $txt = "type: GROUPED\n";
- foreach my $set (keys %{$self->{_sets}})
+ foreach my $set (sort { $b<=>$a } keys %{$self->{_sets}})
{
$txt .= " $set => ". $self->{_sets}->{$set}->dump(' ');
}
--
1.7.12.4 (Apple Git-37)