diff options
author | Peter Prymmer <PPrymmer@factset.com> | 2001-05-11 10:38:43 -0700 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2001-05-12 03:35:58 +0000 |
commit | 1a2d385905f5986a5909cca4b74c6bc6bca7d9a5 (patch) | |
tree | 818154bf8e8d3b397638df93045c26f601f986dc /t/op/append.t | |
parent | d0e4b787f11dc66cbacee11bd72f6ce94246cb24 (diff) | |
download | perl-1a2d385905f5986a5909cca4b74c6bc6bca7d9a5.tar.gz |
fixup t/op/append.t for UTF-EBCDIC
Message-ID: <Pine.OSF.4.10.10105111736190.73589-100000@aspara.forte.com>
p4raw-id: //depot/perl@10087
Diffstat (limited to 't/op/append.t')
-rwxr-xr-x | t/op/append.t | 29 |
1 files changed, 25 insertions, 4 deletions
diff --git a/t/op/append.t b/t/op/append.t index 5aa4bf9007..5e70659c07 100755 --- a/t/op/append.t +++ b/t/op/append.t @@ -43,17 +43,38 @@ if ($_ eq 'abcdef') {print "ok 3\n";} else {print "not ok 3\n";} my $t1 = $a; $t1 .= $ab; print $t1 =~ /\142/ ? "ok 6\n" : "not ok 6\t# $t1\n"; my $t2 = $a; $t2 .= $ub; - print $t2 =~ /\142/ ? "ok 7\n" : "not ok 7\t# $t2\n"; + if (ord('A') == 193) { + # print $t2 eq "\141\141\000" ? "ok 7\n" : "not ok 7\t# $t2\n"; + print $t2 =~ /\141/ ? "ok 7\n" : "not ok 7\t# $t2\n"; + } + else { + print $t2 =~ /\142/ ? "ok 7\n" : "not ok 7\t# $t2\n"; + } my $t3 = $u; $t3 .= $ab; print $t3 =~ /\142/ ? "ok 8\n" : "not ok 8\t# $t3\n"; my $t4 = $u; $t4 .= $ub; - print $t4 =~ /\142/ ? "ok 9\n" : "not ok 9\t# $t4\n"; + if (ord('A') == 193) { + print $t4 =~ /\141/ ? "ok 9\n" : "not ok 9\t# $t4\n"; + } + else { + print $t4 =~ /\142/ ? "ok 9\n" : "not ok 9\t# $t4\n"; + } my $t5 = $a; $t5 = $ab . $t5; print $t5 =~ /\142/ ? "ok 10\n" : "not ok 10\t# $t5\n"; my $t6 = $a; $t6 = $ub . $t6; - print $t6 =~ /\142/ ? "ok 11\n" : "not ok 11\t# $t6\n"; + if (ord('A') == 193) { + print $t6 =~ /\141/ ? "ok 11\n" : "not ok 11\t# $t6\n"; + } + else { + print $t6 =~ /\142/ ? "ok 11\n" : "not ok 11\t# $t6\n"; + } my $t7 = $u; $t7 = $ab . $t7; print $t7 =~ /\142/ ? "ok 12\n" : "not ok 12\t# $t7\n"; my $t8 = $u; $t8 = $ub . $t8; - print $t8 =~ /\142/ ? "ok 13\n" : "not ok 13\t# $t8\n"; + if (ord('A') == 193) { + print $t8 =~ /\141/ ? "ok 13\n" : "not ok 13\t# $t8\n"; + } + else { + print $t8 =~ /\142/ ? "ok 13\n" : "not ok 13\t# $t8\n"; + } } |