Skip to content

Commit

Permalink
Auto merge of #400 - cuviper:ucd10, r=BurntSushi
Browse files Browse the repository at this point in the history
regex-syntax: update to Unicode 10.0

Fixes #391
  • Loading branch information
bors committed Sep 27, 2017
2 parents 32eb964 + 2131b40 commit af2c105
Show file tree
Hide file tree
Showing 5 changed files with 2,567 additions and 2,252 deletions.
12 changes: 12 additions & 0 deletions regex-syntax/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2196,6 +2196,18 @@ mod tests {
assert_eq!(cls.case_fold(), bclass(&[(b'@', b'@')]));
}

#[test]
fn is_word_char() {
use super::is_word_char;
assert!(is_word_char('a'), "ASCII");
assert!(is_word_char('à'), "Latin-1");
assert!(is_word_char('\u{11011}'), "Brahmi (Unicode 6.0)");
assert!(is_word_char('\u{11611}'), "Modi (Unicode 7.0)");
assert!(is_word_char('\u{11711}'), "Ahom (Unicode 8.0)");
assert!(is_word_char('\u{17828}'), "Tangut (Unicode 9.0)");
assert!(is_word_char('\u{1B1B1}'), "Nushu (Unicode 10.0)");
}

#[test]
fn roundtrip_class_hypen() {
let expr = e("[-./]");
Expand Down
Loading

0 comments on commit af2c105

Please sign in to comment.