Skip to content

Commit

Permalink
Add test for RegEx issue #51
Browse files Browse the repository at this point in the history
  • Loading branch information
atoomic committed Jul 17, 2017
1 parent a50dded commit 8061bfb
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions t/v5.24.1/C-COMPILED/bctestc/51.regexp-variable.t
2 changes: 1 addition & 1 deletion t/v5.24.1/C-COMPILED/known_errors.txt
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ xtestc/0163.t TESTS GH #48 - DESTROY not triggered
xtestc/0169.t TESTS Output is: "42\n"
xtestc/0222.t TESTS GH #49 - Cannot use "here-document" in RegExp
xtestc/0247.t TESTS GH #50 - $^H when using arybase
xtestc/0248.t TESTS Output is: " toto \n"
xtestc/0248.t TESTS GH #51 - using variable inside a regexp
xtestc/0262.t TESTS Output is: "Constant subroutine M SQRT2 ..."
xtestc/0269.t TESTS Output is: ""
xtestc/0274.t TESTS Output is: "1..5\nok 1\nok 2\nok 3\nok 4\n"
Expand Down
4 changes: 4 additions & 0 deletions t/v5.24.1/t/bctestc/51.regexp-variable.t
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@

my $s = "toto";
my $k = qq[k\n];
$s =~ qr/to(?{ print "o$k";})/;

0 comments on commit 8061bfb

Please sign in to comment.