This is a live mirror of the Perl 5 development currently hosted at
https://github.com/perl/perl5
https://perl5.git.perl.org
/
perl5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8554e7a
)
Oops!
author
Father Chrysostomos
<sprout@cpan.org>
Sat, 26 Nov 2011 23:39:05 +0000
(15:39 -0800)
committer
Father Chrysostomos
<sprout@cpan.org>
Sat, 26 Nov 2011 23:39:05 +0000
(15:39 -0800)
Well, I at least ran test_porting after making that ‘only doc’ change!
But then I committed with -a by mistake. Oh well.
t/op/substr.t
patch
|
blob
|
blame
|
history
diff --git
a/t/op/substr.t
b/t/op/substr.t
index
1dd9ba4
..
2673fc7
100644
(file)
--- a/
t/op/substr.t
+++ b/
t/op/substr.t
@@
-23,7
+23,7
@@
$SIG{__WARN__} = sub {
BEGIN { require './test.pl'; }
-plan(36
1
);
+plan(36
0
);
run_tests() unless caller;
@@
-42,8
+42,6
@@
eval{substr($a,999,999) = "" ; };# P R Q S
like ($@, $FATAL_MSG);
is(substr($a,0,-6), 'abc'); # P=Q R S
is(substr($a,-3,1), 'x'); # P Q R S
-sub{$b = shift}->(substr($a,999,999));
-is ($w--, 1, 'boundless lvalue substr only warns on fetch');
substr($a,3,3) = 'XYZ';
is($a, 'abcXYZxyz' );