11 is(ord($a), 0x100, "ord sanity check");
12 is(length($a), 1, "length sanity check");
13 is(bytes::length($a), 2, "bytes::length sanity check");
17 my $b = chr(0x100); # affected by 'use bytes'
18 is(ord($b), 0, "chr truncates under use bytes");
19 is(length($b), 1, "length truncated under use bytes");
20 is(bytes::length($b), 1, "bytes::length truncated under use bytes");
27 if (ord('A') == 193) { # EBCDIC?
28 is(ord($c), 0x8c, "ord under use bytes looks at the 1st byte");
30 is(ord($c), 0xc4, "ord under use bytes looks at the 1st byte");
32 is(length($c), 2, "length under use bytes looks at bytes");
33 is(bytes::length($c), 2, "bytes::length under use bytes looks at bytes");