regex-syntax: update to Unicode 10.0

This commit is contained in:
Josh Stone 2017-09-07 10:36:51 -07:00
parent 32eb9643b4
commit a852378de0
2 changed files with 2554 additions and 2239 deletions

View File

@ -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("[-./]");

File diff suppressed because it is too large Load Diff