Skip to content

Commit 00554cc

Browse files
committed
Add tests for case changes when we have Prepend codepoints
1 parent aa2ea1a commit 00554cc

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

S15-nfg/case-change.t

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
use v6;
22
use Test;
33

4-
plan 52;
4+
plan 72;
55

66
# LATIN CAPITAL LETTER D, COMBINING DOT BELOW, COMBINING DOT ABOVE
77
{
@@ -97,3 +97,14 @@ plan 52;
9797
isnt $x.fc, $x, 'fc gives identity';
9898
is $x.fc.NFD.list, (0x0066, 0x0323, 0x0066), 'fc gives correct NFD';
9999
}
100+
101+
{
102+
my $Prepend = "\c[ARABIC NUMBER SIGN]";
103+
my $Extend = "\c[COMBINING CARON]";
104+
for ^10 {
105+
my $lower = "{$Prepend x $_}á{$Extend x (9 - $_)}";
106+
my $upper = "{$Prepend x $_}Á{$Extend x (9 - $_)}";
107+
is-deeply $lower.uc, $upper, "Prepend + á + Extend casechange is correct: .uc: (Prepend x $_ ~ 'á' ~ Extend x {9 - $_}).uc";
108+
is-deeply $upper.lc, $lower, "Prepend + Á + Extend casechange is correct: .lc: (Prepend x $_ ~ 'á' ~ Extend x {9 - $_}).lc";
109+
}
110+
}

0 commit comments

Comments
 (0)