diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 2000-12-30 17:18:40 +0000 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2000-12-30 17:18:40 +0000 |
commit | 5a2d9fa29c136c74882bc9b7afca3c36badfe150 (patch) | |
tree | 5b78ee593773d676e336eaf452bef6181cdb8c1c | |
parent | 1aa99e6b6d14c469ac825dde483d9c9f913a3ee2 (diff) | |
download | perl-5a2d9fa29c136c74882bc9b7afca3c36badfe150.tar.gz |
Add a test for Unicode split //. The #8267 was the cure.
p4raw-id: //depot/perl@8268
-rwxr-xr-x | t/op/split.t | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/t/op/split.t b/t/op/split.t index 9a6586da64..90c38e0770 100755 --- a/t/op/split.t +++ b/t/op/split.t @@ -1,6 +1,6 @@ #!./perl -print "1..29\n"; +print "1..30\n"; $FS = ':'; @@ -127,3 +127,8 @@ print "ok 28\n"; $_ = join ':', split /(?=\w)/, "rm b"; print "not" if $_ ne "r:m :b"; print "ok 29\n"; + +# unicode splittage +@ary = map {ord} split //, v1.20.300.4000.50000.4000.300.20.1; +print "not " unless "@ary" eq "1 20 300 4000 50000 4000 300 20 1"; +print "ok 30\n"; |