Skip to content

Commit af2c105

Browse files
committed
Auto merge of #400 - cuviper:ucd10, r=BurntSushi
regex-syntax: update to Unicode 10.0 Fixes #391
2 parents 32eb964 + 2131b40 commit af2c105

File tree

5 files changed

+2567
-2252
lines changed

5 files changed

+2567
-2252
lines changed

regex-syntax/src/lib.rs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2196,6 +2196,18 @@ mod tests {
21962196
assert_eq!(cls.case_fold(), bclass(&[(b'@', b'@')]));
21972197
}
21982198

2199+
#[test]
2200+
fn is_word_char() {
2201+
use super::is_word_char;
2202+
assert!(is_word_char('a'), "ASCII");
2203+
assert!(is_word_char('à'), "Latin-1");
2204+
assert!(is_word_char('\u{11011}'), "Brahmi (Unicode 6.0)");
2205+
assert!(is_word_char('\u{11611}'), "Modi (Unicode 7.0)");
2206+
assert!(is_word_char('\u{11711}'), "Ahom (Unicode 8.0)");
2207+
assert!(is_word_char('\u{17828}'), "Tangut (Unicode 9.0)");
2208+
assert!(is_word_char('\u{1B1B1}'), "Nushu (Unicode 10.0)");
2209+
}
2210+
21992211
#[test]
22002212
fn roundtrip_class_hypen() {
22012213
let expr = e("[-./]");

0 commit comments

Comments
 (0)