summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2002-01-28 21:36:34 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2002-01-28 21:36:34 +0000
commit2d708654c8507079d72e5605d5b4d455ad567442 (patch)
treef0b2f6b638fb4a75c71446acba793a719e27b747
parent48fb6a9fd76653d0a85e7b3c185d6cf8ada3c89e (diff)
downloadperl-2d708654c8507079d72e5605d5b4d455ad567442.tar.gz
Round #2 on EBCDICation.
p4raw-id: //depot/perl@14479
-rwxr-xr-xt/op/append.t34
1 files changed, 17 insertions, 17 deletions
diff --git a/t/op/append.t b/t/op/append.t
index 2cb6ab8ead..9d6c1d55a4 100755
--- a/t/op/append.t
+++ b/t/op/append.t
@@ -35,40 +35,40 @@ if ($_ eq 'abcdef') {print "ok 3\n";} else {print "not ok 3\n";}
# test that nul bytes get copied
{
- my ($a, $ab) = ("a", "a\0b");
- my ($u, $ub) = map pack("U0a*", $_), $a, $ab;
+ my ($a, $ab) = ("a", "a\0b");
+ my ($ua, $uab) = map pack("U0a*", $_), $a, $ab;
- my $c = $u eq $a ? 'b' : pack("U0a*", 'b');
+ my $ub = pack("U0a*", 'b');
my $t1 = $a; $t1 .= $ab;
- print $t1 =~ /$c/ ? "ok 6\n" : "not ok 6\t# $t1\n";
+ print $t1 =~ /b/ ? "ok 6\n" : "not ok 6\t# $t1\n";
- my $t2 = $a; $t2 .= $ub;
+ my $t2 = $a; $t2 .= $uab;
- print eval '$t2 =~ /$c/' ? "ok 7\n" : "not ok 7\t# $t2\n";
+ print eval '$t2 =~ /$ub/' ? "ok 7\n" : "not ok 7\t# $t2\n";
- my $t3 = $u; $t3 .= $ab;
+ my $t3 = $ua; $t3 .= $ab;
- print $t3 =~ /$c/ ? "ok 8\n" : "not ok 8\t# $t3\n";
+ print $t3 =~ /$ub/ ? "ok 8\n" : "not ok 8\t# $t3\n";
- my $t4 = $u; $t4 .= $ub;
+ my $t4 = $ua; $t4 .= $uab;
- print eval '$t4 =~ /$c/' ? "ok 9\n" : "not ok 9\t# $t4\n";
+ print eval '$t4 =~ /$ub/' ? "ok 9\n" : "not ok 9\t# $t4\n";
my $t5 = $a; $t5 = $ab . $t5;
- print $t5 =~ /$c/ ? "ok 10\n" : "not ok 10\t# $t5\n";
+ print $t5 =~ /$ub/ ? "ok 10\n" : "not ok 10\t# $t5\n";
- my $t6 = $a; $t6 = $ub . $t6;
+ my $t6 = $a; $t6 = $uab . $t6;
- print eval '$t6 =~ /$c/' ? "ok 11\n" : "not ok 11\t# $t6\n";
+ print eval '$t6 =~ /$ub/' ? "ok 11\n" : "not ok 11\t# $t6\n";
- my $t7 = $u; $t7 = $ab . $t7;
+ my $t7 = $ua; $t7 = $ab . $t7;
- print $t7 =~ /$c/ ? "ok 12\n" : "not ok 12\t# $t7\n";
+ print $t7 =~ /$ub/ ? "ok 12\n" : "not ok 12\t# $t7\n";
- my $t8 = $u; $t8 = $ub . $t8;
+ my $t8 = $ua; $t8 = $uab . $t8;
- print eval '$t8 =~ /$c/' ? "ok 13\n" : "not ok 13\t# $t8\n";
+ print eval '$t8 =~ /$ub/' ? "ok 13\n" : "not ok 13\t# $t8\n";
}