summaryrefslogtreecommitdiff
path: root/t/op
diff options
context:
space:
mode:
authorGurusamy Sarathy <gsar@cpan.org>1998-07-26 02:43:57 +0000
committerGurusamy Sarathy <gsar@cpan.org>1998-07-26 02:43:57 +0000
commit48602b09a2a561d79942c9ebaacc5b0ac8890ce0 (patch)
treeacda12781f88419490ff2c1e77d9d58e94e5ec8a /t/op
parent13901cb8afec7040a59edbf2dc197bff221ea179 (diff)
parenta0ed51b321531af4b47cce24205ab9656f043f0f (diff)
downloadperl-48602b09a2a561d79942c9ebaacc5b0ac8890ce0.tar.gz
integrate utfperl
p4raw-id: //depot/perl@1660
Diffstat (limited to 't/op')
-rwxr-xr-xt/op/vec.t4
1 files changed, 2 insertions, 2 deletions
diff --git a/t/op/vec.t b/t/op/vec.t
index 71171447d6..bf60fc4a08 100755
--- a/t/op/vec.t
+++ b/t/op/vec.t
@@ -8,7 +8,7 @@ print vec($foo,0,1) == 0 ? "ok 1\n" : "not ok 1\n";
print length($foo) == 0 ? "ok 2\n" : "not ok 2\n";
vec($foo,0,1) = 1;
print length($foo) == 1 ? "ok 3\n" : "not ok 3\n";
-print ord($foo) == 1 ? "ok 4\n" : "not ok 4\n";
+print unpack('C',$foo) == 1 ? "ok 4\n" : "not ok 4\n";
print vec($foo,0,1) == 1 ? "ok 5\n" : "not ok 5\n";
print vec($foo,20,1) == 0 ? "ok 6\n" : "not ok 6\n";
@@ -18,7 +18,7 @@ print length($foo) == 3 ? "ok 8\n" : "not ok 8\n";
print vec($foo,1,8) == 0 ? "ok 9\n" : "not ok 9\n";
vec($foo,1,8) = 0xf1;
print vec($foo,1,8) == 0xf1 ? "ok 10\n" : "not ok 10\n";
-print ((ord(substr($foo,1,1)) & 255) == 0xf1 ? "ok 11\n" : "not ok 11\n");
+print ((unpack('C',substr($foo,1,1)) & 255) == 0xf1 ? "ok 11\n" : "not ok 11\n");
print vec($foo,2,4) == 1 ? "ok 12\n" : "not ok 12\n";
print vec($foo,3,4) == 15 ? "ok 13\n" : "not ok 13\n";
vec($Vec, 0, 32) = 0xbaddacab;