File: compat.t

package info (click to toggle)
libunicode-map8-perl 0.13%2Bdfsg-5
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 996 kB
  • sloc: perl: 495; ansic: 439; sh: 6; makefile: 2
file content (15 lines) | stat: -rw-r--r-- 323 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
print "1..2\n";

# Test Unicode::Map (Martin Schwartz' module) compatibility

use Unicode::Map8;

$m = Unicode::Map8->new({ID => "ISO-8859-1"});

$u = $m->to_unicode("abc..");

print "not " unless $u eq "\0a\0b\0c\0.\0.\0\0\0";
print "ok 1\n";

print "not " unless $m->from_unicode($u) eq "abc..";
print "ok 2\n";