/Compress/ modules are at version 2.021. Remove vestigal MAPs and comments.
[p5sagit/p5-mst-13.2.git] / ext / Unicode-Collate / t / hangtype.t
CommitLineData
91ae00cb 1BEGIN {
2 unless ("A" eq pack('U', 0x41)) {
3 print "1..0 # Unicode::Collate " .
4 "cannot stringify a Unicode code point\n";
5 exit 0;
6 }
91ae00cb 7 if ($ENV{PERL_CORE}) {
3756e7ca 8 chdir('t') if -d 't';
9 @INC = $^O eq 'MacOS' ? qw(::lib) : qw(../lib);
91ae00cb 10 }
11}
12
13use Test;
3756e7ca 14BEGIN { plan tests => 33 };
91ae00cb 15
16use strict;
17use warnings;
18use Unicode::Collate;
19
20ok(1);
21
22#########################
23
24ok(Unicode::Collate::getHST(0x0000), '');
25ok(Unicode::Collate::getHST(0x0100), '');
26ok(Unicode::Collate::getHST(0x1000), '');
27ok(Unicode::Collate::getHST(0x10FF), '');
28ok(Unicode::Collate::getHST(0x1100), 'L');
29ok(Unicode::Collate::getHST(0x1101), 'L');
30ok(Unicode::Collate::getHST(0x1159), 'L');
31ok(Unicode::Collate::getHST(0x115A), '');
32ok(Unicode::Collate::getHST(0x115E), '');
33ok(Unicode::Collate::getHST(0x115F), 'L');
34ok(Unicode::Collate::getHST(0x1160), 'V');
35ok(Unicode::Collate::getHST(0x1161), 'V');
36ok(Unicode::Collate::getHST(0x11A0), 'V');
37ok(Unicode::Collate::getHST(0x11A2), 'V');
38ok(Unicode::Collate::getHST(0x11A3), '');
39ok(Unicode::Collate::getHST(0x11A7), '');
40ok(Unicode::Collate::getHST(0x11A8), 'T');
41ok(Unicode::Collate::getHST(0x11AF), 'T');
42ok(Unicode::Collate::getHST(0x11E0), 'T');
43ok(Unicode::Collate::getHST(0x11F9), 'T');
44ok(Unicode::Collate::getHST(0x11FA), '');
45ok(Unicode::Collate::getHST(0x11FF), '');
46ok(Unicode::Collate::getHST(0x3011), '');
47ok(Unicode::Collate::getHST(0x11A7), '');
3756e7ca 48ok(Unicode::Collate::getHST(0xABFF), '');
91ae00cb 49ok(Unicode::Collate::getHST(0xAC00), 'LV');
50ok(Unicode::Collate::getHST(0xAC01), 'LVT');
51ok(Unicode::Collate::getHST(0xAC1B), 'LVT');
52ok(Unicode::Collate::getHST(0xAC1C), 'LV');
53ok(Unicode::Collate::getHST(0xD7A3), 'LVT');
3756e7ca 54ok(Unicode::Collate::getHST(0xD7A4), '');
55ok(Unicode::Collate::getHST(0xFFFF), '');
91ae00cb 56