#!./perl
BEGIN {
- chdir 't' if -d 't';
- @INC = '../lib';
require Config;
if (($Config::Config{'extensions'} !~ /\bre\b/) ){
print "1..0 # Skip -- Perl configured without re module\n";
# must use a BEGIN or the prototypes wont be respected meaning
# tests could pass that shouldn't
-BEGIN { require "./test.pl"; }
-my $out = runperl(progfile => "../ext/re/t/lexical_debug.pl", stderr => 1 );
+BEGIN { require "../../t/test.pl"; }
+my $out = runperl(progfile => "t/lexical_debug.pl", stderr => 1 );
print "1..10\n";
ok( $out !~ /EXACT <bop>/, "No 'bop'" );
ok( $out =~ /EXACT <fip>/, "Expect 'fip'" );
ok( $out !~ /EXACT <fop>/, "No 'baz'" );
-ok( $out =~ /<zil>/, "Got 'zil'" ); # in a TRIE so no EXACT
+ok( $out =~ /<liz>/, "Got 'liz'" ); # in a TRIE so no EXACT
ok( $out =~ /<zoo>/, "Got 'zoo'" ); # in a TRIE so no EXACT
ok( $out =~ /<zap>/, "Got 'zap'" ); # in a TRIE so no EXACT
ok( $out =~ /Count=7\n/, "Count is 7")