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 df060fd
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions tests/unicode.rs
Original file line number Diff line number Diff line change
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}$",
r"\u{10570}",
Some((0, 4))
);
mat!(
uni_vithkuqi_literal_lower,
r"(?i)^\u{10570}$",
r"\u{10597}",
Some((0, 4))
);
mat!(uni_vithkuqi_word_upper, r"^\w$", r"\u{10570}", Some((0, 4)));
mat!(uni_vithkuqi_word_lower, r"^\w$", r"\u{10597}", Some((0, 4)));

0 comments on commit df060fd

Please sign in to comment.