File tree Expand file tree Collapse file tree 1 file changed +17
-1
lines changed Expand file tree Collapse file tree 1 file changed +17
-1
lines changed Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ BEGIN {
23
23
skip_all_without_unicode_tables();
24
24
}
25
25
26
- plan tests => 25 ; # Update this when adding/deleting tests.
26
+ plan tests => 57 ; # Update this when adding/deleting tests.
27
27
28
28
use strict;
29
29
use warnings;
@@ -118,6 +118,22 @@ sub run_tests {
118
118
ok ($s !~ / .*?:::\s *ab/si , ' PREGf_IMPLICIT/si' );
119
119
ok ($s !~ / .*?:::\s *ab/ms , ' PREGf_IMPLICIT/ms' );
120
120
ok ($s !~ / .*?:::\s *ab/msi ,' PREGf_IMPLICIT/msi' );
121
+
122
+ for my $star (' *' , ' {0,}' ) {
123
+ for my $greedy (' ' , ' ?' ) {
124
+ for my $flags (' ' , ' i' , ' m' , ' mi' ) {
125
+ for my $s (' ' , ' s' ) {
126
+ my $XBOL = $s ? ' SBOL' : ' MBOL' ;
127
+ my $text = " anchored($XBOL ) implicit" ;
128
+ fresh_perl_like(<<"PROG" , qr /\b\Q $text \E\b / , {}, " /.${star}${greedy} X/${flags}${s} anchors implicitly" );
129
+ BEGIN { \@ INC = ('../lib', '.', '../ext/re'); }
130
+ use re 'debug';
131
+ qr/.${star}${greedy} :::\\ s*ab/${flags}${s}
132
+ PROG
133
+ }
134
+ }
135
+ }
136
+ }
121
137
}
122
138
123
139
} # End of sub run_tests
You can’t perform that action at this time.
0 commit comments