File tree 2 files changed +15
-14
lines changed 2 files changed +15
-14
lines changed Original file line number Diff line number Diff line change 1
1
# !./perl
2
2
3
- use strict;
4
- use warnings;
5
-
6
3
BEGIN {
7
4
chdir ' t' if -d ' t' ;
8
5
require ' ./test.pl' ;
9
- @INC = ' ../lib' ;
6
+ @INC = qw( lib ../lib) ;
10
7
plan(tests => 14);
11
8
}
12
9
10
+ use strict;
11
+ use warnings;
12
+
13
13
use mypragma (); # don't enable this pragma yet
14
14
15
15
BEGIN {
Original file line number Diff line number Diff line change 4
4
# the format supported by re/regexp.t. If you want to add a test
5
5
# that does fit that format, add it to re/re_tests, not here.
6
6
7
+ BEGIN {
8
+ chdir ' t' if -d ' t' ;
9
+ @INC = qw( ../lib .) ;
10
+ require ' ./test.pl' ;
11
+ require ' ./charset_tools.pl' ;
12
+ skip_all_if_miniperl(" miniperl can't load Tie::Hash::NamedCapture, need for %+ and %-" );
13
+ }
14
+
7
15
use strict;
8
16
use warnings;
9
17
use 5.010;
10
18
11
-
12
19
sub run_tests ;
13
20
14
21
$| = 1;
15
22
16
-
17
- BEGIN {
18
- chdir ' t' if -d ' t' ;
19
- @INC = ' ../lib' ;
20
- require ' ./test.pl' ;
21
- require ' ./charset_tools.pl' ;
22
- skip_all_if_miniperl(" miniperl can't load Tie::Hash::NamedCapture, need for %+ and %-" );
23
- }
24
-
25
23
run_tests() unless caller ;
26
24
27
25
#
@@ -985,6 +983,9 @@ sub run_tests {
985
983
}
986
984
987
985
{
986
+ BEGIN {
987
+ unshift @INC , ' lib' ;
988
+ }
988
989
use Cname;
989
990
990
991
ok ' fooB' =~ / \N{foo} [\N{B}\N{b} ]/ , " Passthrough charname" ;
You can’t perform that action at this time.
0 commit comments