This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Update Unicode-Collate to CPAN version 0.67
[perl5.git] / cpan / Unicode-Collate / t / loc_uk.t
CommitLineData
6709de88
CBW
1#!perl
2use strict;
3use warnings;
4use Unicode::Collate::Locale;
5
6use Test;
7plan tests => 7;
8
9my $objUk = Unicode::Collate::Locale->
10 new(locale => 'UK', normalization => undef);
11
12ok(1);
13ok($objUk->getlocale, 'uk');
14
15$objUk->change(level => 1);
16
17ok($objUk->lt("\x{433}", "\x{491}"));
18ok($objUk->gt("\x{434}", "\x{491}"));
19
20# 4
21
22$objUk->change(level => 2);
23
24ok($objUk->eq("\x{491}", "\x{490}"));
25
26$objUk->change(level => 3);
27
28ok($objUk->lt("\x{491}", "\x{490}"));
29
30$objUk->change(upper_before_lower => 1);
31
32ok($objUk->gt("\x{491}", "\x{490}"));
33
34# 7