X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Fop%2Fsubstr.t;h=dfb483aee58b02f2542f93f2cbd0527267626b55;hb=3511154c18a0900e8873e8e72a4b74931525e718;hp=533f1a5bc47a122c1cbee0b5f5367318f252d6bc;hpb=6214ab63745c28e26e752f88d98bf89671cabc77;p=p5sagit%2Fp5-mst-13.2.git diff --git a/t/op/substr.t b/t/op/substr.t index 533f1a5..dfb483a 100755 --- a/t/op/substr.t +++ b/t/op/substr.t @@ -1,6 +1,6 @@ #!./perl -print "1..176\n"; +print "1..177\n"; #P = start of string Q = start of substr R = end of substr S = end of string @@ -602,3 +602,10 @@ ok 174, $x eq "\x{100}\x{200}\xFFb"; my $x = my $y = 'AB'; ss $x; ss $y; ok 176, $x eq $y; } + +# [perl #24605] +{ + my $x = "0123456789\x{500}"; + my $y = substr $x, 4; + ok 177, substr($x, 7, 1) eq "7"; +}