Skip to content

Commit 3b66c6e

Browse files
committed
Add more tests to t/run/todo.t
1 parent 476f5af commit 3b66c6e

File tree

1 file changed

+39
-1
lines changed

1 file changed

+39
-1
lines changed

t/run/todo.t

Lines changed: 39 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
#!./perl
22
BEGIN {
33
chdir 't' if -d 't';
4-
@INC = '../lib';
54
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;
69
}
710

811
use strict;
@@ -24,6 +27,11 @@ use warnings;
2427

2528
my $switches = "";
2629

30+
{ # Fixed by acababb42be12ff2986b73c1bfa963b70bb5d54e
31+
"abab" =~ /(?:[^b]*(?=(b)|(a))ab)*/;
32+
is($1, undef, "GH #16894");
33+
}
34+
2735
our $TODO;
2836
TODO: {
2937
local $TODO = "GH 16250";
@@ -36,4 +44,34 @@ TODO: {
3644
"undef:de567\nundef:de567", { eval $switches }, "");
3745
}
3846

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+
3977
done_testing();

0 commit comments

Comments
 (0)