2
unless ("A" eq pack('U', 0x41)) {
3
print "1..0 # Unicode::Collate " .
4
"cannot stringify a Unicode code point\n";
9
@INC = $^O eq 'MacOS' ? qw(::lib) : qw(../lib);
14
BEGIN { plan tests => 70 };
23
ok(Unicode::Collate::getHST(0x0000), '');
24
ok(Unicode::Collate::getHST(0x0100), '');
25
ok(Unicode::Collate::getHST(0x1000), '');
26
ok(Unicode::Collate::getHST(0x10FF), '');
27
ok(Unicode::Collate::getHST(0x1100), 'L');
28
ok(Unicode::Collate::getHST(0x1101), 'L');
29
ok(Unicode::Collate::getHST(0x1159), 'L');
30
ok(Unicode::Collate::getHST(0x115A), '');
31
ok(Unicode::Collate::getHST(0x115A, 18), '');
32
ok(Unicode::Collate::getHST(0x115A, 20), 'L');
33
ok(Unicode::Collate::getHST(0x115E), '');
34
ok(Unicode::Collate::getHST(0x115E, 18), '');
35
ok(Unicode::Collate::getHST(0x115E, 20), 'L');
36
ok(Unicode::Collate::getHST(0x115F), 'L');
37
ok(Unicode::Collate::getHST(0x1160), 'V');
38
ok(Unicode::Collate::getHST(0x1161), 'V');
39
ok(Unicode::Collate::getHST(0x11A0), 'V');
40
ok(Unicode::Collate::getHST(0x11A2), 'V');
41
ok(Unicode::Collate::getHST(0x11A3), '');
42
ok(Unicode::Collate::getHST(0x11A3, 18), '');
43
ok(Unicode::Collate::getHST(0x11A3, 20), 'V');
44
ok(Unicode::Collate::getHST(0x11A7), '');
45
ok(Unicode::Collate::getHST(0x11A7, 18), '');
46
ok(Unicode::Collate::getHST(0x11A7, 20), 'V');
47
ok(Unicode::Collate::getHST(0x11A8), 'T');
48
ok(Unicode::Collate::getHST(0x11AF), 'T');
49
ok(Unicode::Collate::getHST(0x11E0), 'T');
50
ok(Unicode::Collate::getHST(0x11F9), 'T');
51
ok(Unicode::Collate::getHST(0x11FA), '');
52
ok(Unicode::Collate::getHST(0x11FA, 18), '');
53
ok(Unicode::Collate::getHST(0x11FA, 20), 'T');
54
ok(Unicode::Collate::getHST(0x11FF), '');
55
ok(Unicode::Collate::getHST(0x11FF, 18), '');
56
ok(Unicode::Collate::getHST(0x11FF, 20), 'T');
59
ok(Unicode::Collate::getHST(0x3011), '');
60
ok(Unicode::Collate::getHST(0xABFF), '');
61
ok(Unicode::Collate::getHST(0xAC00), 'LV');
62
ok(Unicode::Collate::getHST(0xAC01), 'LVT');
63
ok(Unicode::Collate::getHST(0xAC1B), 'LVT');
64
ok(Unicode::Collate::getHST(0xAC1C), 'LV');
65
ok(Unicode::Collate::getHST(0xD7A3), 'LVT');
66
ok(Unicode::Collate::getHST(0xD7A4), '');
67
ok(Unicode::Collate::getHST(0xFFFF), '');
70
ok(Unicode::Collate::getHST(0xA960, 18), '');
71
ok(Unicode::Collate::getHST(0xA961, 18), '');
72
ok(Unicode::Collate::getHST(0xA97C, 18), '');
73
ok(Unicode::Collate::getHST(0xD7B0, 18), '');
74
ok(Unicode::Collate::getHST(0xD7C0, 18), '');
75
ok(Unicode::Collate::getHST(0xD7C6, 18), '');
76
ok(Unicode::Collate::getHST(0xD7C7, 18), '');
77
ok(Unicode::Collate::getHST(0xD7CA, 18), '');
78
ok(Unicode::Collate::getHST(0xD7CB, 18), '');
79
ok(Unicode::Collate::getHST(0xD7DD, 18), '');
80
ok(Unicode::Collate::getHST(0xD7FB, 18), '');
81
ok(Unicode::Collate::getHST(0xD7FC, 18), '');
82
ok(Unicode::Collate::getHST(0xD7FF, 18), '');
85
ok(Unicode::Collate::getHST(0xA960, 20), 'L');
86
ok(Unicode::Collate::getHST(0xA961, 20), 'L');
87
ok(Unicode::Collate::getHST(0xA97C, 20), 'L');
88
ok(Unicode::Collate::getHST(0xD7B0, 20), 'V');
89
ok(Unicode::Collate::getHST(0xD7C0, 20), 'V');
90
ok(Unicode::Collate::getHST(0xD7C6, 20), 'V');
91
ok(Unicode::Collate::getHST(0xD7C7, 20), '');
92
ok(Unicode::Collate::getHST(0xD7CA, 20), '');
93
ok(Unicode::Collate::getHST(0xD7CB, 20), 'T');
94
ok(Unicode::Collate::getHST(0xD7DD, 20), 'T');
95
ok(Unicode::Collate::getHST(0xD7FB, 20), 'T');
96
ok(Unicode::Collate::getHST(0xD7FC, 20), '');
97
ok(Unicode::Collate::getHST(0xD7FF, 20), '');