|
| 1 | +#!./perl |
| 2 | +BEGIN { |
| 3 | + chdir 't' if -d 't'; |
| 4 | + @INC = '../lib'; |
| 5 | + require './test.pl'; # for fresh_perl_is() etc |
| 6 | +} |
| 7 | + |
| 8 | +use strict; |
| 9 | +use warnings; |
| 10 | + |
| 11 | +# This file is a place for tests that fail at the time they are added here. |
| 12 | +# |
| 13 | +# When a ticket is filed, just follow the paradigm(s) in this file to add a |
| 14 | +# test that shows the failure. |
| 15 | +# |
| 16 | +# It is expected that when new tickets are opened, some will actually be |
| 17 | +# duplicates of existing known bad behavior. And since there are so many open |
| 18 | +# tickets, we might overlook that. If there is a test here, we would |
| 19 | +# automatically discover that a fix for the newer ticket actually fixed an |
| 20 | +# earlier one (or ones) as well. Thus the issue can be closed, and the final |
| 21 | +# disposition of the test here determined at that time. (For example, perhaps |
| 22 | +# it is redundant to the test demonstrating the bug that was intentionally |
| 23 | +# fixed, so can be removed altogether.) |
| 24 | + |
| 25 | +my $switches = ""; |
| 26 | + |
| 27 | +our $TODO; |
| 28 | +TODO: { |
| 29 | + local $TODO = "GH 16250"; |
| 30 | + fresh_perl_is(<<~'EOF', |
| 31 | + "abcde5678" =~ / b (*pla:.*(*plb:(*plb:(.{4}))? (.{5})).$)/x; |
| 32 | + print $1 // "undef", ":", $2 // "undef", "\n"; |
| 33 | + "abcde5678" =~ / b .* (*plb:(*plb:(.{4}))? (.{5}) ) .$ /x; |
| 34 | + print $1 // "undef", ":", $2 // "undef", "\n"; |
| 35 | + EOF |
| 36 | + "undef:de567\nundef:de567", { $switches }, ""); |
| 37 | +} |
| 38 | + |
| 39 | +done_testing(); |
0 commit comments