12 eval "require 'meta_notation.pm'";
14 fail("Could not find 'meta_notation.pm'");
18 is(_meta_notation("\007\010\011\c?Z\x{103}"), "^G^H^I^?Z\x{103}");
20 if ($::IS_ASCII || $::IS_ASCII) {
21 is(_meta_notation("\x{c1}\x{e2}"), 'M-AM-b');
22 is(_meta_notation("\x{df}"), 'M-_');
24 else { # EBCDIC platform
25 # In the first iteration we are looking for a non-ASCII control; in
26 # the second, a regular non-ASCII character. SPACE marks the end of
27 # most controls. We test each to see that they are properly converted
29 foreach my $start (0x20, ord " ") {
30 for (my $i = $start; $i < 256; $i++) {
32 next if $char =~ /[[:ascii:]]/;
33 is(_meta_notation($char), sprintf("\\x{%X}", $i));