summaryrefslogtreecommitdiff
path: root/cpan/Unicode-Collate/t/loc_af.t
blob: c3c9af85f0e9a15cc1feb4f776a3a5a941346947 (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
#!perl
use strict;
use warnings;
use Unicode::Collate::Locale;

use Test;
plan tests => 8;

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

ok(1);
ok($objAf->getlocale, 'af');

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

ok($objAf->eq("n", "N"));
ok($objAf->eq("N", "\x{149}"));

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

ok($objAf->eq("n", "N"));
ok($objAf->eq("N", "\x{149}"));

$objAf->change(level => 3);

ok($objAf->lt("n", "N"));
ok($objAf->lt("N", "\x{149}"));