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:
7f4ea6c
)
Two tests from perl #7806.
author
Jarkko Hietaniemi
<jhi@iki.fi>
Thu, 28 Nov 2002 23:41:54 +0000
(23:41 +0000)
committer
Jarkko Hietaniemi
<jhi@iki.fi>
Thu, 28 Nov 2002 23:41:54 +0000
(23:41 +0000)
p4raw-id: //depot/maint-5.8/perl@18214
t/op/subst.t
patch
|
blob
|
blame
|
history
diff --git
a/t/op/subst.t
b/t/op/subst.t
index
63fb6c6
..
ef0ae0a
100755
(executable)
--- a/
t/op/subst.t
+++ b/
t/op/subst.t
@@
-7,7
+7,7
@@
BEGIN {
}
require './test.pl';
-plan( tests => 12
2
);
+plan( tests => 12
4
);
$x = 'foo';
$_ = "x";
@@
-491,3
+491,12
@@
SKIP: {
is($b, "$na--$na--$nb", "s///: replace long non-utf8 into non-utf8 (utf8 pattern)");
}
+$_ = 'aaaa';
+$r = 'x';
+$s = s/a(?{})/$r/g;
+is("<$_> <$s>", "<xxxx> <4>", "perl #7806");
+
+$_ = 'aaaa';
+$s = s/a(?{})//g;
+is("<$_> <$s>", "<> <4>", "perl #7806");
+