Skip to content

Commit bbab08a

Browse files
committed
uniprop: add tests for 5 more properties
Diacritic, Default_Ignorable_Code_Point, ID_Start, IDS_Binary_Operator, IDS_Trinary_Operator
1 parent db27cf2 commit bbab08a

File tree

1 file changed

+19
-3
lines changed

1 file changed

+19
-3
lines changed

S15-unicode-information/uniprop.t

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,10 @@ plan 152;
2626

2727
## Miscellaneous Properties [5/19]
2828
# Unicode_1_Name, Name, Jamo_Short_Name, ISO_Comment, Bidi_Mirroring_Glyph
29-
## Binary [33/60]
30-
# ASCII_Hex_Digit, Hex_Digit, Dash, Case_Ignorable, Soft_Dotted, Quotation_Mark, Math
31-
# Grapheme_Extend, Hyphen, Extender, Grapheme_Base, Join_Control, Grapheme_Link
29+
## Binary [38/60]
30+
# ASCII_Hex_Digit, Hex_Digit, Dash, Diacritic, Default_Ignorable_Code_Point, ID_Start
31+
# IDS_Binary_Operator, IDS_Trinary_Operator, Case_Ignorable, Soft_Dotted, Quotation_Mark,
32+
# Math, Grapheme_Extend, Hyphen, Extender, Grapheme_Base, Join_Control, Grapheme_Link
3233
# Deprecated, White_Space, Ideographic, Radical, Alphabetic, Bidi_Mirrored, Variation_Selector
3334
# ID_Continue, Sentence_Terminal, Changes_When_NFKC_Casefolded, Full_Composition_Exclusion
3435
# Cased, Changes_When_Casefolded, Changes_When_Casemapped, Changes_When_Lowercased
@@ -156,6 +157,21 @@ is-deeply 'ᖤ'.uniprop('Grapheme_Link'), False, "uniprop for Grapheme_Link retu
156157
is-deeply ''.uniprop('Extender'), True, "uniprop for Extender property returns True for codepoints with this property";
157158
is-deeply 'a'.uniprop('Extender'), False, "uniprop for Extender property returns False for codepoints without this property";
158159

160+
is-deeply 0x2FF2.uniprop('IDS_Trinary_Operator'), True, "uniprop for IDS_Trinary_Operator returns True for codepoints with this property";
161+
is-deeply ''.uniprop('IDS_Trinary_Operator'), False, "uniprop for IDS_Trinary_Operator returns False for codepoints without this property";
162+
163+
is-deeply 0x2FF0.uniprop('IDS_Binary_Operator'), True, "uniprop for IDS_Binary_Operator returns True for codepoints with this property";
164+
is-deeply 'ϣ'.uniprop('IDS_Binary_Operator'), False, "uniprop for IDS_Binary_Operator returns False for codepoints without this property";
165+
166+
is-deeply 'Ϳ'.uniprop('ID_Start'), True, "uniprop for ID_Start property returns True for codepoints with this property";
167+
is-deeply '̴'.uniprop('ID_Start'), False "uniprop for ID_Start property returns False for codepoints without this property";
168+
169+
is-deeply '؜'.uniprop('Default_Ignorable_Code_Point'), True, "uniprop for Default_Ignorable_Code_Point returns True for codepoints with this property";
170+
is-deeply 'ē'.uniprop('Default_Ignorable_Code_Point'), False, "uniprop for Default_Ignorable_Code_Point returns False for codepoints without this property";
171+
172+
is-deeply '^'.uniprop('Diacritic'), True, "uniprop for Diacritic property returns True for codepoints with this property";
173+
is-deeply 'Ê'.uniprop('Diacritic'), False, "uniprop for Diacritic property returns False for codepoints without this property";
174+
159175
is-deeply 0x200D.uniprop('Join_Control'), True, "uniprop for Join_Control property returns True for U+200D";
160176
is-deeply 0x200C.uniprop('Join_Control'), True, "uniprop for Join_Control property returns True for U+200C";
161177
is-deeply 'a'.uniprop('Join_Control'), False, "uniprop for Join_Control property returns False for codes without this property";

0 commit comments

Comments
 (0)