blob: 3e7777063e4a6cddb74caea71673908799887402 (
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
|
#!perl
use strict;
use warnings;
use Unicode::Collate::Locale;
use Test;
plan tests => 8;
my $objAr = Unicode::Collate::Locale->
new(locale => 'AR', normalization => undef);
ok(1);
ok($objAr->getlocale, 'ar');
$objAr->change(level => 1);
ok($objAr->eq("\x{62A}", "\x{629}"));
ok($objAr->eq("\x{62A}", "\x{FE93}"));
ok($objAr->eq("\x{62A}", "\x{FE94}"));
$objAr->change(level => 3);
ok($objAr->eq("\x{62A}", "\x{629}"));
ok($objAr->eq("\x{62A}", "\x{FE93}"));
ok($objAr->eq("\x{62A}", "\x{FE94}"));
# 8
|