From: Steve Peters Date: Mon, 4 Dec 2006 02:48:24 +0000 (+0000) Subject: Upgrade to Test-Simple-0.66. X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=ba760cefee81a5e9f04523b6940e0759647cb917;p=p5sagit%2Fp5-mst-13.2.git Upgrade to Test-Simple-0.66. p4raw-id: //depot/perl@29444 --- diff --git a/lib/Test/Builder.pm b/lib/Test/Builder.pm index 91698a9..3634849 100644 --- a/lib/Test/Builder.pm +++ b/lib/Test/Builder.pm @@ -8,7 +8,7 @@ $^C ||= 0; use strict; use vars qw($VERSION); -$VERSION = '0.34'; +$VERSION = '0.35'; $VERSION = eval $VERSION; # make the alpha version come out as a number # Make Test::Builder thread-safe for ithreads. diff --git a/lib/Test/Builder/Module.pm b/lib/Test/Builder/Module.pm index bb4da4b..e74770f 100644 --- a/lib/Test/Builder/Module.pm +++ b/lib/Test/Builder/Module.pm @@ -5,7 +5,7 @@ use Test::Builder; require Exporter; @ISA = qw(Exporter); -$VERSION = '0.04'; +$VERSION = '0.05'; use strict; diff --git a/lib/Test/Builder/Tester.pm b/lib/Test/Builder/Tester.pm index a4cf4e1..1f32b72 100644 --- a/lib/Test/Builder/Tester.pm +++ b/lib/Test/Builder/Tester.pm @@ -2,7 +2,7 @@ package Test::Builder::Tester; use strict; use vars qw(@EXPORT $VERSION @ISA); -$VERSION = "1.05"; +$VERSION = "1.06"; use Test::Builder; use Symbol; @@ -506,8 +506,8 @@ sub _translate_Failed_check { my($self, $check) = @_; - if( $check =~ /\A(.*)# (Failed .*test) \((.*?) at line (\d+)\)\z/ ) { - $check = qr/\Q$1\E#\s+\Q$2\E.*?\n?.*?\Qat $3\E line \Q$4\E.*\n?/; + if( $check =~ /\A(.*)# (Failed .*test) \((.*?) at line (\d+)\)\Z(?!\n)/ ) { + $check = "/\Q$1\E#\\s+\Q$2\E.*?\\n?.*?\Qat $3\E line \Q$4\E.*\\n?/"; } return $check; @@ -527,7 +527,7 @@ sub check my @checks = @{$self->{wanted}}; my $got = $self->{got}; foreach my $check (@checks) { - $check = qr/^\Q$check\E/ unless ref $check; + $check = "\Q$check\E" unless ($check =~ s,^/(.*)/$,$1, or ref $check); return 0 unless $got =~ s/^$check//; } diff --git a/lib/Test/More.pm b/lib/Test/More.pm index 69f7381..70499fd 100644 --- a/lib/Test/More.pm +++ b/lib/Test/More.pm @@ -16,7 +16,7 @@ sub _carp { use vars qw($VERSION @ISA @EXPORT %EXPORT_TAGS $TODO); -$VERSION = '0.65'; +$VERSION = '0.66'; $VERSION = eval $VERSION; # make the alpha version come out as a number use Test::Builder::Module; diff --git a/lib/Test/Simple.pm b/lib/Test/Simple.pm index be804c2..a295a1a 100644 --- a/lib/Test/Simple.pm +++ b/lib/Test/Simple.pm @@ -4,7 +4,7 @@ use 5.004; use strict 'vars'; use vars qw($VERSION @ISA @EXPORT); -$VERSION = '0.65'; +$VERSION = '0.66'; $VERSION = eval $VERSION; # make the alpha version come out as a number use Test::Builder::Module;