Skip to content

Commit 357e187

Browse files
committed
uniprop: more Indic_Syllabic_Category and Bidi_Paired_Bracket type tests
Make sure we test we receive the correct value for codes *without* this property.
1 parent 7b87885 commit 357e187

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,8 +2,8 @@ use v6;
22

33
use Test;
44

5-
plan 148;
6-
#?niecza 148 skip "uniprop NYI"
5+
plan 150;
6+
#?niecza 150 skip "uniprop NYI"
77

88
#use unicode :v(6.3);
99

@@ -97,11 +97,12 @@ is "ᄁ".uniprop('Jamo_Short_Name'), 'GG', "uniprop for Jamo_Short_Name works";
9797
#?rakudo.moar todo 'moar returns a string containing the unicode codepoint instead of an integer for Bidi_Mirroring_Glyph'
9898
# https://github.com/MoarVM/MoarVM/issues/451
9999
is '('.uniprop('Bidi_Mirroring_Glyph'), ')', "'('.uniprop('Bidi_Mirroring_Glyph') returns ')'";
100-
#?rakudo.moar 3 todo 'Bidi_Paired_Bracket_Type and Bidi_Paired_Bracket NYI in MoarVM'
100+
#?rakudo.moar 4 todo 'Bidi_Paired_Bracket_Type and Bidi_Paired_Bracket NYI in MoarVM'
101101
# https://github.com/MoarVM/MoarVM/issues/465
102102
is '('.uniprop('Bidi_Paired_Bracket'), ')', "uniprop: returns matching Bidi_Paired_Bracket";
103103
is '('.uniprop('Bidi_Paired_Bracket_Type'), 'o', "'('.uniprop('Bidi_Paired_Bracket_Type') returns 'o'";
104104
is ')'.uniprop('Bidi_Paired_Bracket_Type'), 'c', "')'.uniprop('Bidi_Paired_Bracket_Type') returns 'c'";
105+
is 'a'.uniprop('Bidi_Paired_Bracket_Type'), 'n', "uniprop for Bidi_Paired_Bracket_Type returns 'n' for codes without this property";
105106

106107
## Numeric Properties
107108
isa-ok "½".uniprop('Numeric_Value'), Rat, "'½'.uniprop('Numeric_Value') returns a Rat";
@@ -243,9 +244,11 @@ is 'a'.uniprop('NFKC_Quick_Check'), True, 'uniprop for NFKC_Quick_Check returns
243244
is 0x00A0.uniprop('NFKD_Quick_Check'), False, 'uniprop for NFKD_Quick_Check returns False for codes without this property';
244245
is 'a'.uniprop('NFKD_Quick_Check'), True, 'uniprop for NFKD_Quick_Check returns True for codes with this property';
245246

246-
#?rakudo.moar todo "Indic_Syllabic_Category NYI in MoarVM"
247+
#?rakudo.moar 2 todo "Indic_Syllabic_Category NYI in MoarVM"
247248
# https://github.com/MoarVM/MoarVM/issues/466
248249
is 0x0374.uniprop('Indic_Syllabic_Category'), 'Bindu', 'uniprop for Indic_Syllabic_Category returns N for ‘No’ value codes';
250+
is 'a'.uniprop('Indic_Syllabic_Category'), 'Other', 'uniprop for Indic_Syllabic_Category returns Other for codes without this property';
251+
249252
#?rakudo.moar todo "MoarVM returns only int's but not Canonical_Combining_Class's string value"
250253
# https://github.com/MoarVM/MoarVM/issues/464
251254
is ' '.uniprop('Canonical_Combining_Class'), 'Not_Reordered', "uniprop for Canonical_Combining_Class works";

0 commit comments

Comments
 (0)