Skip to content

Commit 4e9476d

Browse files
committed
uniprop: add a test for Indic_Positional_Category
1 parent 2759cf2 commit 4e9476d

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

S15-unicode-information/uniprop.t

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

33
use Test;
44

5-
plan 62;
5+
plan 63;
66

77
#use unicode :v(6.3);
88

@@ -24,14 +24,14 @@ plan 62;
2424
# ASCII_Hex_Digit, Hex_Digit, Dash, Case_Ignorable, Soft_Dotted, Quotation_Mark
2525
## Catalog Properties [3/3]
2626
# Script, Age, Block
27-
## Enum [8/20]
27+
## Enum [9/20]
2828
# Bidi_Paired_Bracket, Bidi_Paired_Bracket_Type, Bidi_Mirroring_Glyph, Bidi_Class East_Asian_Width
29-
# Word_Break, Line_Break, Hangul_Syllable_Type
29+
# Word_Break, Line_Break, Hangul_Syllable_Type, Indic_Positional_Category
3030
## Additional [2/?]
3131
# Emoji Emoji_Modifier Emoji_All
3232

3333

34-
#?niecza 62 skip "uniprop NYI"
34+
#?niecza 63 skip "uniprop NYI"
3535
is uniprop(""), Nil, "uniprop an empty string yields Nil";
3636
is "".uniprop, Nil, "''.uniprop yields Nil";
3737
throws-like "uniprop Str", X::Multi::NoMatch, 'cannot call uniprop with a Str';
@@ -53,6 +53,9 @@ is 'a'.uniprop('Block'), 'Basic Latin', "uniprop for Block works";
5353
#?rakudo.moar todo 'Unicode 1 names NYI in MoarVM'
5454
is ''.uniprop('Unicode_1_Name'), "PARAGRAPH SIGN", "¶.uniprop('Unicode_1_Name') returns Unicode 1 name";
5555
is uniprop(0xFB00, 'Name'), "LATIN SMALL LIGATURE FF", "uniprop: returns proper name for LATIN SMALL LIGATURE FF";
56+
#?rakudo.moar todo 'Indic_Positional_Category NYI in MoarVM'
57+
# https://github.com/MoarVM/MoarVM/issues/461
58+
is 0x0BD7.uniprop('Indic_Positional_Category'), "Right", "uniprop for Indic_Positional_Category works";
5659

5760
is "\x[FB00]".lc, "\x[FB00]", ".lc: returns proper lowercase mapping for LATIN SMALL LIGATURE FF";
5861
is uniprop(0xFB00, 'Lowercase_Mapping'), "\x[FB00]", "uniprop: returns proper lowercase mapping for LATIN SMALL LIGATURE FF";

0 commit comments

Comments
 (0)