use strict;
use vars qw(@EXPORT $VERSION @ISA);
-$VERSION = "1.05";
+$VERSION = "1.06";
use Test::Builder;
use Symbol;
{
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;
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//;
}
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;
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;