Skip to content

Commit f99444b

Browse files
committed
Add test for .uc/.lc with prepend codeponints. RT132020
Add a test to close RT132020. This test makes sure .uc works properly even when a GCB=Prepend codepoint comes in front of it.
1 parent f910bc9 commit f99444b

File tree

2 files changed

+13
-2
lines changed

2 files changed

+13
-2
lines changed

S32-str/lc.t

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

33
use Test;
44

5-
plan 18;
5+
plan 19;
66

77
# L<S32::Str/Str/lc>
88

@@ -40,4 +40,10 @@ is 'Σ'.lc, 'σ', 'final sigma does not apply if string is only an uppercase sig
4040
is 'The Σ is a Sigma'.lc, 'the σ is a sigma', 'final sigma does not apply if only letter in word (ws)';
4141
is 'Sigma looks like Σ.'.lc, 'sigma looks like σ.', 'final sigma does not apply if only letter in word (.)';
4242

43+
# RT132020
44+
# This test makes sure .lc works properly even when a GCB=Prepend codepoint comes in front of it.
45+
{
46+
is-deeply "\c[arabic number sign]A".lc, "\c[arabic number sign]a", "Uppercasing works even with prepend codepoints";
47+
}
48+
4349
# vim: ft=perl6

S32-str/uc.t

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ use v6;
22

33
use Test;
44

5-
plan 19;
5+
plan 20;
66

77
# L<S32::Str/"Str"/=item uc>
88

@@ -61,5 +61,10 @@ is ~(0.lc), ~0, '.lc on Int';
6161
#?rakudo.jvm todo 'got 3'
6262
is $s.uc.chars, 1, "Char with no precomposed upper gets NFG'd so upper is one grapheme";
6363
}
64+
# RT132020
65+
# This test makes sure .uc works properly even when a GCB=Prepend codepoint comes in front of it.
66+
{
67+
is-deeply "\c[arabic number sign]a".uc, "\c[arabic number sign]A", "Uppercasing works even with prepend codepoints";
68+
}
6469

6570
# vim: ft=perl6

0 commit comments

Comments
 (0)