summaryrefslogtreecommitdiff
path: root/cpan/Unicode-Collate/t/loc_be.t
diff options
context:
space:
mode:
Diffstat (limited to 'cpan/Unicode-Collate/t/loc_be.t')
-rw-r--r--cpan/Unicode-Collate/t/loc_be.t203
1 files changed, 114 insertions, 89 deletions
diff --git a/cpan/Unicode-Collate/t/loc_be.t b/cpan/Unicode-Collate/t/loc_be.t
index 708b03d255..f9d20d9c30 100644
--- a/cpan/Unicode-Collate/t/loc_be.t
+++ b/cpan/Unicode-Collate/t/loc_be.t
@@ -12,7 +12,7 @@ BEGIN {
}
use Test;
-BEGIN { plan tests => 130 };
+BEGIN { plan tests => 190 };
use strict;
use warnings;
@@ -29,149 +29,174 @@ ok($objBe->getlocale, 'be');
$objBe->change(level => 1);
-ok($objBe->gt("\x{4E5}", "\x{438}"));
-ok($objBe->gt("\x{4E4}", "\x{418}"));
-ok($objBe->gt("\x{439}", "\x{438}"));
-ok($objBe->gt("\x{419}", "\x{418}"));
+ok($objBe->gt("\x{451}", "\x{435}"));
+ok($objBe->gt("\x{401}", "\x{415}"));
+ok($objBe->lt("\x{451}", "\x{454}"));
+ok($objBe->lt("\x{401}", "\x{404}"));
-# 6
+ok($objBe->gt("\x{4E5}", "\x{438}")); # not suppressed
+ok($objBe->gt("\x{4E4}", "\x{418}")); # not suppressed
+ok($objBe->gt("\x{439}", "\x{438}")); # not suppressed
+ok($objBe->gt("\x{419}", "\x{418}")); # not suppressed
+ok($objBe->gt("\x{45E}", "\x{443}")); # not suppressed
+ok($objBe->gt("\x{40E}", "\x{423}")); # not suppressed
+ok($objBe->gt("\x{4F1}", "\x{443}")); # not suppressed
+ok($objBe->gt("\x{4F0}", "\x{423}")); # not suppressed
+ok($objBe->gt("\x{4F3}", "\x{443}")); # not suppressed
+ok($objBe->gt("\x{4F2}", "\x{423}")); # not suppressed
+
+# 16
ok($objBe->eq("\x{4D1}", "\x{430}"));
ok($objBe->eq("\x{4D0}", "\x{410}"));
ok($objBe->eq("\x{4D3}", "\x{430}"));
ok($objBe->eq("\x{4D2}", "\x{410}"));
+ok($objBe->eq("\x{4DB}", "\x{4D9}"));
+ok($objBe->eq("\x{4DA}", "\x{4D8}"));
ok($objBe->eq("\x{453}", "\x{433}"));
ok($objBe->eq("\x{403}", "\x{413}"));
+ok($objBe->eq("\x{450}", "\x{435}")); # not contraction
+ok($objBe->eq("\x{400}", "\x{415}")); # not contraction
ok($objBe->eq("\x{4D7}", "\x{435}"));
ok($objBe->eq("\x{4D6}", "\x{415}"));
+ok($objBe->eq("\x{4C2}", "\x{436}")); # not contraction
+ok($objBe->eq("\x{4C1}", "\x{416}")); # not contraction
ok($objBe->eq("\x{4DD}", "\x{436}"));
ok($objBe->eq("\x{4DC}", "\x{416}"));
ok($objBe->eq("\x{4DF}", "\x{437}"));
ok($objBe->eq("\x{4DE}", "\x{417}"));
+ok($objBe->eq("\x{45D}", "\x{438}")); # not contraction
+ok($objBe->eq("\x{40D}", "\x{418}")); # not contraction
+ok($objBe->eq("\x{4E3}", "\x{438}")); # not contraction
+ok($objBe->eq("\x{4E2}", "\x{418}")); # not contraction
ok($objBe->eq("\x{457}", "\x{456}"));
ok($objBe->eq("\x{407}", "\x{406}"));
ok($objBe->eq("\x{4E7}", "\x{43E}"));
ok($objBe->eq("\x{4E6}", "\x{41E}"));
+ok($objBe->eq("\x{4EB}", "\x{4E9}"));
+ok($objBe->eq("\x{4EA}", "\x{4E8}"));
ok($objBe->eq("\x{45C}", "\x{43A}"));
ok($objBe->eq("\x{40C}", "\x{41A}"));
-ok($objBe->eq("\x{45E}", "\x{443}"));
-ok($objBe->eq("\x{40E}", "\x{423}"));
-ok($objBe->eq("\x{4F1}", "\x{443}"));
-ok($objBe->eq("\x{4F0}", "\x{423}"));
-ok($objBe->eq("\x{4F3}", "\x{443}"));
-ok($objBe->eq("\x{4F2}", "\x{423}"));
+ok($objBe->eq("\x{4EF}", "\x{443}")); # not contraction
+ok($objBe->eq("\x{4EE}", "\x{423}")); # not contraction
ok($objBe->eq("\x{4F5}", "\x{447}"));
ok($objBe->eq("\x{4F4}", "\x{427}"));
ok($objBe->eq("\x{4F9}", "\x{44B}"));
ok($objBe->eq("\x{4F8}", "\x{42B}"));
ok($objBe->eq("\x{4ED}", "\x{44D}"));
ok($objBe->eq("\x{4EC}", "\x{42D}"));
+ok($objBe->eq("\x{477}", "\x{475}"));
+ok($objBe->eq("\x{476}", "\x{474}"));
-# 36
+# 56
$objBe->change(level => 2);
+ok($objBe->eq("\x{451}", "\x{401}"));
+
ok($objBe->gt("\x{4D1}", "\x{430}"));
ok($objBe->gt("\x{4D0}", "\x{410}"));
ok($objBe->gt("\x{4D3}", "\x{430}"));
ok($objBe->gt("\x{4D2}", "\x{410}"));
+ok($objBe->gt("\x{4DB}", "\x{4D9}"));
+ok($objBe->gt("\x{4DA}", "\x{4D8}"));
ok($objBe->gt("\x{453}", "\x{433}"));
ok($objBe->gt("\x{403}", "\x{413}"));
+ok($objBe->gt("\x{450}", "\x{435}")); # not contraction
+ok($objBe->gt("\x{400}", "\x{415}")); # not contraction
ok($objBe->gt("\x{4D7}", "\x{435}"));
ok($objBe->gt("\x{4D6}", "\x{415}"));
+ok($objBe->gt("\x{4C2}", "\x{436}")); # not contraction
+ok($objBe->gt("\x{4C1}", "\x{416}")); # not contraction
ok($objBe->gt("\x{4DD}", "\x{436}"));
ok($objBe->gt("\x{4DC}", "\x{416}"));
ok($objBe->gt("\x{4DF}", "\x{437}"));
ok($objBe->gt("\x{4DE}", "\x{417}"));
+ok($objBe->gt("\x{45D}", "\x{438}")); # not contraction
+ok($objBe->gt("\x{40D}", "\x{418}")); # not contraction
+ok($objBe->gt("\x{4E3}", "\x{438}")); # not contraction
+ok($objBe->gt("\x{4E2}", "\x{418}")); # not contraction
ok($objBe->gt("\x{457}", "\x{456}"));
ok($objBe->gt("\x{407}", "\x{406}"));
ok($objBe->gt("\x{4E7}", "\x{43E}"));
ok($objBe->gt("\x{4E6}", "\x{41E}"));
+ok($objBe->gt("\x{4EB}", "\x{4E9}"));
+ok($objBe->gt("\x{4EA}", "\x{4E8}"));
ok($objBe->gt("\x{45C}", "\x{43A}"));
ok($objBe->gt("\x{40C}", "\x{41A}"));
-ok($objBe->gt("\x{45E}", "\x{443}"));
-ok($objBe->gt("\x{40E}", "\x{423}"));
-ok($objBe->gt("\x{4F1}", "\x{443}"));
-ok($objBe->gt("\x{4F0}", "\x{423}"));
-ok($objBe->gt("\x{4F3}", "\x{443}"));
-ok($objBe->gt("\x{4F2}", "\x{423}"));
+ok($objBe->gt("\x{4EF}", "\x{443}")); # not contraction
+ok($objBe->gt("\x{4EE}", "\x{423}")); # not contraction
ok($objBe->gt("\x{4F5}", "\x{447}"));
ok($objBe->gt("\x{4F4}", "\x{427}"));
ok($objBe->gt("\x{4F9}", "\x{44B}"));
ok($objBe->gt("\x{4F8}", "\x{42B}"));
ok($objBe->gt("\x{4ED}", "\x{44D}"));
ok($objBe->gt("\x{4EC}", "\x{42D}"));
+ok($objBe->gt("\x{477}", "\x{475}"));
+ok($objBe->gt("\x{476}", "\x{474}"));
-# 66
+# 97
$objBe->change(level => 3);
-ok($objBe->eq("\x{4D1}", "\x{430}\x{306}"));
-ok($objBe->eq("\x{4D0}", "\x{410}\x{306}"));
-ok($objBe->eq("\x{4D3}", "\x{430}\x{308}"));
-ok($objBe->eq("\x{4D2}", "\x{410}\x{308}"));
-ok($objBe->eq("\x{453}", "\x{433}\x{301}"));
-ok($objBe->eq("\x{403}", "\x{413}\x{301}"));
-ok($objBe->eq("\x{4D7}", "\x{435}\x{306}"));
-ok($objBe->eq("\x{4D6}", "\x{415}\x{306}"));
-ok($objBe->eq("\x{4DD}", "\x{436}\x{308}"));
-ok($objBe->eq("\x{4DC}", "\x{416}\x{308}"));
-ok($objBe->eq("\x{4DF}", "\x{437}\x{308}"));
-ok($objBe->eq("\x{4DE}", "\x{417}\x{308}"));
-ok($objBe->eq("\x{4E5}", "\x{438}\x{308}"));
-ok($objBe->eq("\x{4E4}", "\x{418}\x{308}"));
-ok($objBe->eq("\x{457}", "\x{456}\x{308}"));
-ok($objBe->eq("\x{407}", "\x{406}\x{308}"));
-ok($objBe->eq("\x{439}", "\x{438}\x{306}"));
-ok($objBe->eq("\x{419}", "\x{418}\x{306}"));
-ok($objBe->eq("\x{4E7}", "\x{43E}\x{308}"));
-ok($objBe->eq("\x{4E6}", "\x{41E}\x{308}"));
-ok($objBe->eq("\x{45C}", "\x{43A}\x{301}"));
-ok($objBe->eq("\x{40C}", "\x{41A}\x{301}"));
-ok($objBe->eq("\x{45E}", "\x{443}\x{306}"));
-ok($objBe->eq("\x{40E}", "\x{423}\x{306}"));
-ok($objBe->eq("\x{4F1}", "\x{443}\x{308}"));
-ok($objBe->eq("\x{4F0}", "\x{423}\x{308}"));
-ok($objBe->eq("\x{4F3}", "\x{443}\x{30B}"));
-ok($objBe->eq("\x{4F2}", "\x{423}\x{30B}"));
-ok($objBe->eq("\x{4F5}", "\x{447}\x{308}"));
-ok($objBe->eq("\x{4F4}", "\x{427}\x{308}"));
-ok($objBe->eq("\x{4F9}", "\x{44B}\x{308}"));
-ok($objBe->eq("\x{4F8}", "\x{42B}\x{308}"));
-ok($objBe->eq("\x{4ED}", "\x{44D}\x{308}"));
-ok($objBe->eq("\x{4EC}", "\x{42D}\x{308}"));
-
-# 100
-
-ok($objBe->eq("\x{4D1}", "\x{430}\0\x{306}"));
-ok($objBe->eq("\x{4D0}", "\x{410}\0\x{306}"));
-ok($objBe->eq("\x{4D3}", "\x{430}\0\x{308}"));
-ok($objBe->eq("\x{4D2}", "\x{410}\0\x{308}"));
-ok($objBe->eq("\x{453}", "\x{433}\0\x{301}"));
-ok($objBe->eq("\x{403}", "\x{413}\0\x{301}"));
-ok($objBe->eq("\x{4D7}", "\x{435}\0\x{306}"));
-ok($objBe->eq("\x{4D6}", "\x{415}\0\x{306}"));
-ok($objBe->eq("\x{4DD}", "\x{436}\0\x{308}"));
-ok($objBe->eq("\x{4DC}", "\x{416}\0\x{308}"));
-ok($objBe->eq("\x{4DF}", "\x{437}\0\x{308}"));
-ok($objBe->eq("\x{4DE}", "\x{417}\0\x{308}"));
-ok($objBe->eq("\x{457}", "\x{456}\0\x{308}"));
-ok($objBe->eq("\x{407}", "\x{406}\0\x{308}"));
-ok($objBe->eq("\x{4E7}", "\x{43E}\0\x{308}"));
-ok($objBe->eq("\x{4E6}", "\x{41E}\0\x{308}"));
-ok($objBe->eq("\x{45C}", "\x{43A}\0\x{301}"));
-ok($objBe->eq("\x{40C}", "\x{41A}\0\x{301}"));
-ok($objBe->eq("\x{45E}", "\x{443}\0\x{306}"));
-ok($objBe->eq("\x{40E}", "\x{423}\0\x{306}"));
-ok($objBe->eq("\x{4F1}", "\x{443}\0\x{308}"));
-ok($objBe->eq("\x{4F0}", "\x{423}\0\x{308}"));
-ok($objBe->eq("\x{4F3}", "\x{443}\0\x{30B}"));
-ok($objBe->eq("\x{4F2}", "\x{423}\0\x{30B}"));
-ok($objBe->eq("\x{4F5}", "\x{447}\0\x{308}"));
-ok($objBe->eq("\x{4F4}", "\x{427}\0\x{308}"));
-ok($objBe->eq("\x{4F9}", "\x{44B}\0\x{308}"));
-ok($objBe->eq("\x{4F8}", "\x{42B}\0\x{308}"));
-ok($objBe->eq("\x{4ED}", "\x{44D}\0\x{308}"));
-ok($objBe->eq("\x{4EC}", "\x{42D}\0\x{308}"));
-
-# 130
+ok($objBe->lt("\x{451}", "\x{401}"));
+
+ok($objBe->eq("\x{451}", "\x{435}\x{308}"));
+ok($objBe->eq("\x{401}", "\x{415}\x{308}"));
+ok($objBe->eq("\x{4E5}", "\x{438}\x{308}")); # not suppressed
+ok($objBe->eq("\x{4E4}", "\x{418}\x{308}")); # not suppressed
+ok($objBe->eq("\x{439}", "\x{438}\x{306}")); # not suppressed
+ok($objBe->eq("\x{419}", "\x{418}\x{306}")); # not suppressed
+ok($objBe->eq("\x{45E}", "\x{443}\x{306}")); # not suppressed
+ok($objBe->eq("\x{40E}", "\x{423}\x{306}")); # not suppressed
+ok($objBe->eq("\x{4F1}", "\x{443}\x{308}")); # not suppressed
+ok($objBe->eq("\x{4F0}", "\x{423}\x{308}")); # not suppressed
+ok($objBe->eq("\x{4F3}", "\x{443}\x{30B}")); # not suppressed
+ok($objBe->eq("\x{4F2}", "\x{423}\x{30B}")); # not suppressed
+
+# 110
+
+for my $i ("", "\0") {
+ ok($objBe->eq("\x{4D1}", "\x{430}$i\x{306}"));
+ ok($objBe->eq("\x{4D0}", "\x{410}$i\x{306}"));
+ ok($objBe->eq("\x{4D3}", "\x{430}$i\x{308}"));
+ ok($objBe->eq("\x{4D2}", "\x{410}$i\x{308}"));
+ ok($objBe->eq("\x{4DB}", "\x{4D9}$i\x{308}"));
+ ok($objBe->eq("\x{4DA}", "\x{4D8}$i\x{308}"));
+ ok($objBe->eq("\x{453}", "\x{433}$i\x{301}"));
+ ok($objBe->eq("\x{403}", "\x{413}$i\x{301}"));
+ ok($objBe->eq("\x{450}", "\x{435}$i\x{300}")); # not contraction
+ ok($objBe->eq("\x{400}", "\x{415}$i\x{300}")); # not contraction
+ ok($objBe->eq("\x{4D7}", "\x{435}$i\x{306}"));
+ ok($objBe->eq("\x{4D6}", "\x{415}$i\x{306}"));
+ ok($objBe->eq("\x{4C2}", "\x{436}$i\x{306}")); # not contraction
+ ok($objBe->eq("\x{4C1}", "\x{416}$i\x{306}")); # not contraction
+ ok($objBe->eq("\x{4DD}", "\x{436}$i\x{308}"));
+ ok($objBe->eq("\x{4DC}", "\x{416}$i\x{308}"));
+ ok($objBe->eq("\x{4DF}", "\x{437}$i\x{308}"));
+ ok($objBe->eq("\x{4DE}", "\x{417}$i\x{308}"));
+ ok($objBe->eq("\x{45D}", "\x{438}$i\x{300}")); # not contraction
+ ok($objBe->eq("\x{40D}", "\x{418}$i\x{300}")); # not contraction
+ ok($objBe->eq("\x{4E3}", "\x{438}$i\x{304}")); # not contraction
+ ok($objBe->eq("\x{4E2}", "\x{418}$i\x{304}")); # not contraction
+ ok($objBe->eq("\x{457}", "\x{456}$i\x{308}"));
+ ok($objBe->eq("\x{407}", "\x{406}$i\x{308}"));
+ ok($objBe->eq("\x{4E7}", "\x{43E}$i\x{308}"));
+ ok($objBe->eq("\x{4E6}", "\x{41E}$i\x{308}"));
+ ok($objBe->eq("\x{4EB}", "\x{4E9}$i\x{308}"));
+ ok($objBe->eq("\x{4EA}", "\x{4E8}$i\x{308}"));
+ ok($objBe->eq("\x{45C}", "\x{43A}$i\x{301}"));
+ ok($objBe->eq("\x{40C}", "\x{41A}$i\x{301}"));
+ ok($objBe->eq("\x{4EF}", "\x{443}$i\x{304}")); # not contraction
+ ok($objBe->eq("\x{4EE}", "\x{423}$i\x{304}")); # not contraction
+ ok($objBe->eq("\x{4F5}", "\x{447}$i\x{308}"));
+ ok($objBe->eq("\x{4F4}", "\x{427}$i\x{308}"));
+ ok($objBe->eq("\x{4F9}", "\x{44B}$i\x{308}"));
+ ok($objBe->eq("\x{4F8}", "\x{42B}$i\x{308}"));
+ ok($objBe->eq("\x{4ED}", "\x{44D}$i\x{308}"));
+ ok($objBe->eq("\x{4EC}", "\x{42D}$i\x{308}"));
+ ok($objBe->eq("\x{477}", "\x{475}$i\x{30F}"));
+ ok($objBe->eq("\x{476}", "\x{474}$i\x{30F}"));
+}
+
+# 190