summaryrefslogtreecommitdiff
path: root/cpan/Unicode-Collate/t/loc_ko.t
blob: 268eb3bd8c5fb935ec4f5b86aa03e2b37cf837be (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
#!perl
use strict;
use warnings;
use Unicode::Collate::Locale;

use Test;
plan tests => 42;

my $objKo = Unicode::Collate::Locale->
    new(locale => 'KO', normalization => undef);

ok(1);
ok($objKo->getlocale, 'ko');

$objKo->change(level => 1);

ok($objKo->eq("\x{AC00}", "\x{4F3D}"));
ok($objKo->eq("\x{4F3D}", "\x{4F73}"));
ok($objKo->eq("\x{4F73}", "\x{5047}"));
ok($objKo->eq("\x{5047}", "\x{50F9}"));
ok($objKo->eq("\x{50F9}", "\x{52A0}"));
ok($objKo->eq("\x{52A0}", "\x{53EF}"));
ok($objKo->lt("\x{53EF}", "\x{AC01}"));

ok($objKo->eq("\x{AC1D}", "\x{5580}"));
ok($objKo->eq("\x{5580}", "\x{5BA2}"));
ok($objKo->lt("\x{5BA2}", "\x{AC31}"));

ok($objKo->eq("\x{C77C}", "\x{4E00}"));
ok($objKo->eq("\x{4E00}", "\x{4F5A}"));
ok($objKo->eq("\x{4F5A}", "\x{4F7E}"));

ok($objKo->lt("\x{993C}", "\x{D790}"));
ok($objKo->eq("\x{D790}", "\x{8A70}"));
ok($objKo->eq("\x{8A70}", "\x{72B5}"));
ok($objKo->eq("\x{72B5}", "\x{7E88}"));
ok($objKo->eq("\x{7E88}", "\x{896D}"));
ok($objKo->eq("\x{896D}", "\x{9821}"));
ok($objKo->eq("\x{9821}", "\x{9EE0}"));

# 22

$objKo->change(level => 2);

ok($objKo->lt("\x{AC00}", "\x{4F3D}"));
ok($objKo->lt("\x{4F3D}", "\x{4F73}"));
ok($objKo->lt("\x{4F73}", "\x{5047}"));
ok($objKo->lt("\x{5047}", "\x{50F9}"));
ok($objKo->lt("\x{50F9}", "\x{52A0}"));
ok($objKo->lt("\x{52A0}", "\x{53EF}"));
ok($objKo->lt("\x{53EF}", "\x{AC01}"));

ok($objKo->lt("\x{AC1D}", "\x{5580}"));
ok($objKo->lt("\x{5580}", "\x{5BA2}"));
ok($objKo->lt("\x{5BA2}", "\x{AC31}"));

ok($objKo->lt("\x{C77C}", "\x{4E00}"));
ok($objKo->lt("\x{4E00}", "\x{4F5A}"));
ok($objKo->lt("\x{4F5A}", "\x{4F7E}"));

ok($objKo->lt("\x{993C}", "\x{D790}"));
ok($objKo->lt("\x{D790}", "\x{8A70}"));
ok($objKo->lt("\x{8A70}", "\x{72B5}"));
ok($objKo->lt("\x{72B5}", "\x{7E88}"));
ok($objKo->lt("\x{7E88}", "\x{896D}"));
ok($objKo->lt("\x{896D}", "\x{9821}"));
ok($objKo->lt("\x{9821}", "\x{9EE0}"));

#42