1
1
# !./perl
2
2
BEGIN {
3
3
chdir ' t' if -d ' t' ;
4
- @INC = ' ../lib' ;
5
4
require ' ./test.pl' ; # for fresh_perl_is() etc
5
+ set_up_inc(' ../lib' , ' .' , ' ../ext/re' );
6
+ require ' ./charset_tools.pl' ;
7
+ require ' ./loc_tools.pl' ;
8
+ require Config; import Config;
6
9
}
7
10
8
11
use strict;
@@ -24,6 +27,11 @@ use warnings;
24
27
25
28
my $switches = " " ;
26
29
30
+ { # Fixed by acababb42be12ff2986b73c1bfa963b70bb5d54e
31
+ " abab" =~ / (?:[^b]*(?=(b)|(a))ab)*/ ;
32
+ is($1 , undef , " GH #16894" );
33
+ }
34
+
27
35
our $TODO ;
28
36
TODO: {
29
37
local $TODO = " GH 16250" ;
@@ -36,4 +44,34 @@ TODO: {
36
44
" undef:de567\n undef:de567" , { eval $switches }, " " );
37
45
}
38
46
47
+ TODO: {
48
+ local $: :TODO = ' GH 16876' ;
49
+ fresh_perl(' $_ = "a"; s{ x | (?{ s{}{x} }) }{}gx;' ,
50
+ { stderr => ' devnull' });
51
+ is($? , 0, " No assertion failure" );
52
+ }
53
+
54
+ TODO: {
55
+ local $: :TODO = ' GH 16952' ;
56
+ fresh_perl(' s/d|(?{})!//.$&>0for$0,l..a0,0..0' ,
57
+ { stderr => ' devnull' });
58
+ is($? , 0, " No assertion failure" );
59
+ }
60
+
61
+ TODO: {
62
+ local $: :TODO = ' GH 16971' ;
63
+ fresh_perl(' split(/00|0\G/, "000")' ,
64
+ { stderr => ' devnull' });
65
+ is($? , 0, " No assertion failure" );
66
+ }
67
+
68
+ TODO: {
69
+ local $: :TODO = ' GH 16627' ;
70
+ fresh_perl(' use re "eval";
71
+ my @r;
72
+ for$0(qw(0 0)){push@r,qr/@r(?{})/};' ,
73
+ { stderr => ' devnull' });
74
+ is($? , 0, " No assertion failure" );
75
+ }
76
+
39
77
done_testing();
0 commit comments