Skip to content

Commit

Permalink
tests: add Unicode tests for 'Vithkuqi'
Browse files Browse the repository at this point in the history
Vithkuqi support was added to Unicode 14.

Fixes #877
  • Loading branch information
BurntSushi committed Jul 5, 2022
1 parent c01b633 commit 9ca0c3c
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions tests/unicode.rs
Expand Up @@ -232,3 +232,20 @@ mat!(uni_class_sb2, r"\p{sb=lower}", "\u{0469}", Some((0, 2)));
mat!(uni_class_sb3, r"\p{sb=Close}", "\u{FF60}", Some((0, 3)));
mat!(uni_class_sb4, r"\p{sb=Close}", "\u{1F677}", Some((0, 4)));
mat!(uni_class_sb5, r"\p{sb=SContinue}", "\u{FF64}", Some((0, 3)));

// Test 'Vithkuqi' support, which was added in Unicode 14.
// See: https://github.com/rust-lang/regex/issues/877
mat!(
uni_vithkuqi_literal_upper,
r"(?i)^\u{10570}$",
"\u{10570}",
Some((0, 4))
);
mat!(
uni_vithkuqi_literal_lower,
r"(?i)^\u{10570}$",
"\u{10597}",
Some((0, 4))
);
mat!(uni_vithkuqi_word_upper, r"^\w$", "\u{10570}", Some((0, 4)));
mat!(uni_vithkuqi_word_lower, r"^\w$", "\u{10597}", Some((0, 4)));

0 comments on commit 9ca0c3c

Please sign in to comment.