Skip to content

Commit 9ca0c3c

Browse files
committed
tests: add Unicode tests for 'Vithkuqi'
Vithkuqi support was added to Unicode 14. Fixes #877
1 parent c01b633 commit 9ca0c3c

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

tests/unicode.rs

+17
Original file line numberDiff line numberDiff line change
@@ -232,3 +232,20 @@ mat!(uni_class_sb2, r"\p{sb=lower}", "\u{0469}", Some((0, 2)));
232232
mat!(uni_class_sb3, r"\p{sb=Close}", "\u{FF60}", Some((0, 3)));
233233
mat!(uni_class_sb4, r"\p{sb=Close}", "\u{1F677}", Some((0, 4)));
234234
mat!(uni_class_sb5, r"\p{sb=SContinue}", "\u{FF64}", Some((0, 3)));
235+
236+
// Test 'Vithkuqi' support, which was added in Unicode 14.
237+
// See: https://github.com/rust-lang/regex/issues/877
238+
mat!(
239+
uni_vithkuqi_literal_upper,
240+
r"(?i)^\u{10570}$",
241+
"\u{10570}",
242+
Some((0, 4))
243+
);
244+
mat!(
245+
uni_vithkuqi_literal_lower,
246+
r"(?i)^\u{10570}$",
247+
"\u{10597}",
248+
Some((0, 4))
249+
);
250+
mat!(uni_vithkuqi_word_upper, r"^\w$", "\u{10570}", Some((0, 4)));
251+
mat!(uni_vithkuqi_word_lower, r"^\w$", "\u{10597}", Some((0, 4)));

0 commit comments

Comments
 (0)