Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
regex-syntax: update to Unicode 10.0
  • Loading branch information
cuviper committed Sep 7, 2017
commit a852378de01cac87ddfec778b0090075845fec08
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