|
[text/plain 1.1k]
[SAMTREGAR - Thu Oct 28 16:30:22 2004]:
> I tried to install Regexp::Optimizer 0.13 from CPAN and received this
> error:
>
> t/02-list....ok 13/24# Failed test (t/02-list.t at line 54)
> # got: '(?-xism:[\cZ\cA])'
> # expected: '(?-xism:[])'
This is due to the fact that qr/[\cZ\cA]/ gets "unquoted" on perl 5.8.5 or later. The following
patch to t/02-list.t fixes that.
I'll release 0.14 to address that.
Dan the Mantainer Thereof
=========================================================
==========
RCS file: t/02-list.t,v
retrieving revision 0.3
diff -u -r0.3 t/02-list.t
--- t/02-list.t 2003/06/02 20:11:54 0.3
+++ t/02-list.t 2004/11/05 12:37:34
@@ -1,5 +1,5 @@
#
-# $Id: 02-list.t,v 0.3 2003/06/02 20:11:54 dankogai Exp dankogai $
+# $Id: 02-list.t,v 0.3 2003/06/02 20:11:54 dankogai Exp $
#
use strict;
use warnings;
@@ -42,7 +42,7 @@
(
q/\012|\015/ => qr/[\012\015]/,
q/\x20|\x3F/ => => qr/[\x20\x3F]/,
- q/\cZ|\cA/ => qr/[\cZ\cA]/,
+ q/\cZ|\cA/ => $] < 5.008005 ? qr/[\cZ\cA]/ : '(?-xism:[\cZ\cA])',
);
for (sort {length $a <=> length $b} keys %t_l){
|