Skip to content

Commit 7c27fb9

Browse files
committed
t/run/todo.t: Add some tests
I had these as works-in-progress. Time to commit them
1 parent 5d79c38 commit 7c27fb9

File tree

1 file changed

+47
-0
lines changed

1 file changed

+47
-0
lines changed

t/run/todo.t

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,53 @@ my $is_debugging_build = $Config{cppflags} =~ /-DDEBUGGING/;
3838

3939
our $TODO;
4040

41+
TODO: {
42+
local $TODO = "[GH 8267]";
43+
44+
"A" =~ /(((?:A))?)+/;
45+
my $first = $2;
46+
47+
"A" =~ /(((A))?)+/;
48+
my $second = $2;
49+
50+
is($first, $second);
51+
}
52+
53+
TODO: {
54+
local $TODO = "[GH 8859]";
55+
fresh_perl_is(<<~'EOF',
56+
my $mul = 2**32; my $a = 104712103; my $b = 50;
57+
my $c = 449735057880383538; # For these values, $mul * $a + $b == $c. Thus $diff should be zero.
58+
my $diff = $c - ($a * $mul + $b);
59+
printf "%.0f %.0f %.0f %.0f", $a, $b, $c, $diff;
60+
#printf "\$c $c %0.f\n", $c;
61+
EOF
62+
"104712103 50 449735057880383538 0", { eval $switches }, "");
63+
}
64+
65+
TODO: {
66+
local $TODO = "[GH 10194]";
67+
fresh_perl_is(<<~'EOF',
68+
use Encode;
69+
use Devel::Peek;
70+
71+
my $line = "\xe2\x90\x0a";
72+
chomp(my $str = "\xe2\x90\x0a");
73+
74+
Encode::_utf8_on($line);
75+
Encode::_utf8_on($str);
76+
77+
for ($line, $str) {
78+
Dump($_);
79+
# Doesn't crash
80+
$_ =~ /(.*)/;
81+
# List context
82+
() = $_ =~ /(.*)/;
83+
}
84+
EOF
85+
"", { eval $switches }, "");
86+
}
87+
4188
TODO: {
4289
local $::TODO = "GH 16008";
4390
my $results = fresh_perl(<<~'EOF', {} );

0 commit comments

Comments
 (0)