diff options
author | Spider Boardman <spider@orb.nashua.nh.us> | 2000-09-15 12:37:58 -0400 |
---|---|---|
committer | Nick Ing-Simmons <nik@tiuk.ti.com> | 2000-09-30 12:50:33 +0000 |
commit | 5fa9e1699857f48f424aaf1b7c26bcdffdf16a76 (patch) | |
tree | 4e667e283f5eaf5ae626b6ec8d20703812badcaa /t/op/append.t | |
parent | 07c7e8c5bc23027e439932d9efc7f28a0fba2a98 (diff) | |
download | perl-5fa9e1699857f48f424aaf1b7c26bcdffdf16a76.tar.gz |
Re: unicode support and perl [ID 20000901.097]
Message-Id: <200009152037.QAA19056@Orb.Nashua.NH.US>
p4raw-id: //depot/perl@7100
Diffstat (limited to 't/op/append.t')
-rwxr-xr-x | t/op/append.t | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/t/op/append.t b/t/op/append.t index afaf6a1d41..972d32178b 100755 --- a/t/op/append.t +++ b/t/op/append.t @@ -2,7 +2,7 @@ # $RCSfile: append.t,v $$Revision: 4.1 $$Date: 92/08/07 18:27:36 $ -print "1..13\n"; +print "1..14\n"; $a = 'ab' . 'c'; # compile time $b = 'def'; @@ -54,3 +54,11 @@ if ($_ eq 'abcdef') {print "ok 3\n";} else {print "not ok 3\n";} my $t8 = $u; $t8 = $ub . $t8; print $t8 =~ /b/ ? "ok 13\n" : "not ok 13\t# $t8\n"; } + +# test that undef left and right of utf8 results in a valid string +{ + my $a; + $a .= "\x{1ff}"; + print $a eq "\x{1ff}" ? "ok 14\n" : + "not ok 14\t# (undef.0x1ff) ne (0x1ff)\n"; +} |