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:
04c286d
)
Add Nicholas Clark's test case for [perl #18915].
author
Jarkko Hietaniemi
<jhi@iki.fi>
Mon, 9 Dec 2002 23:21:58 +0000
(23:21 +0000)
committer
Jarkko Hietaniemi
<jhi@iki.fi>
Mon, 9 Dec 2002 23:21:58 +0000
(23:21 +0000)
(The bug was fixed by change #18266.)
p4raw-link: @18266 on //depot/perl:
ada6e8a992d3696f2a5e84c5e93d2fce8998ecfb
p4raw-id: //depot/maint-5.8/perl@18275
t/op/split.t
patch
|
blob
|
blame
|
history
diff --git
a/t/op/split.t
b/t/op/split.t
index
5f20c1a
..
5b8535c
100755
(executable)
--- a/
t/op/split.t
+++ b/
t/op/split.t
@@
-6,7
+6,7
@@
BEGIN {
require './test.pl';
}
-plan tests => 4
7
;
+plan tests => 4
9
;
$FS = ':';
@@
-262,3
+262,17
@@
ok(@ary == 3 &&
my @a = split /\r?\n/, "$char\n";
ok(@a == 1 && $a[0] eq $char && !defined($warn));
}
+
+{
+ # [perl #18195]
+ for my $a (0,1) {
+ $_ = 'readin,database,readout';
+ if ($ARGV[0]) {
+ $_ .= chr 256;
+ chop;
+ }
+ /(.+)/;
+ my @d = split /[,]/,$1;
+ is(join (':',@d), 'readin:database:readout', "[perl #18195]")
+ }
+}