Skip to content

Commit e15b1b0

Browse files
committed
uniprop: add test for Simple_Uppercase_Mapping
Also correct the plan count
1 parent 7a8f78b commit e15b1b0

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

S15-unicode-information/uniprop.t

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

33
use Test;
44

5-
plan 143;
5+
plan 146;
66

77
#use unicode :v(6.3);
88

@@ -18,7 +18,7 @@ plan 143;
1818
# Numeric_Value, Numeric_Type
1919

2020
## String [5/12]
21-
# Lowercase_Mapping, Uppercase_Mapping, Titlecase_Mapping, Case_Folding
21+
# Lowercase_Mapping, Uppercase_Mapping, Titlecase_Mapping, Case_Folding, Simple_Uppercase_Mapping
2222

2323
## Miscellaneous Properties [5/19]
2424
# Unicode_1_Name, Name, Jamo_Short_Name, ISO_Comment, Bidi_Mirroring_Glyph
@@ -44,7 +44,7 @@ plan 143;
4444
# Emoji, Emoji_Modifier, Emoji_All, Emoji_Presentation
4545

4646

47-
#?niecza 143 skip "uniprop NYI"
47+
#?niecza 146 skip "uniprop NYI"
4848
is uniprop(""), Nil, "uniprop an empty string yields Nil";
4949
is "".uniprop, Nil, "''.uniprop yields Nil";
5050
throws-like "uniprop Str", X::Multi::NoMatch, 'cannot call uniprop with a Str';
@@ -79,6 +79,9 @@ is "\x[FB00]".tc, "\x[0046]\x[0066]", ".tc: returns proper lowercase mapping for
7979
is uniprop(0xFB00, 'Titlecase_Mapping'), "\x[0046]\x[0066]", "uniprop: returns proper titlecase mapping for LATIN SMALL LIGATURE FF";
8080
is "\x[FB00]".uc, "\x[0046]\x[0046]", ".uc: returns proper uppercase mapping for LATIN SMALL LIGATURE FF";
8181
is uniprop(0xFB00, 'Uppercase_Mapping'), "\x[0046]\x[0046]", ".uc: returns proper uppercase mapping for LATIN SMALL LIGATURE FF";
82+
is 'ß'.uniprop('Simple_Uppercase_Mapping'), 'ß', "uniprop for Simple_Uppercase_Mapping returns LATIN SMALL LETTER SHARP S for LATIN SMALL LETTER SHARP S";
83+
84+
8285
is "\x[FB00]".uniname, "LATIN SMALL LIGATURE FF", "uniname: returns proper name for LATIN SMALL LIGATURE FF";
8386
is "".fc, "st", "'st'.fc returns ‘st’";
8487
#?rakudo.moar todo "uniprop('Case_Folding') does not yet work"

0 commit comments

Comments
 (0)