Skip to content

Commit a852378

Browse files
committed
regex-syntax: update to Unicode 10.0
1 parent 32eb964 commit a852378

File tree

2 files changed

+2561
-2246
lines changed

2 files changed

+2561
-2246
lines changed

regex-syntax/src/lib.rs

+12
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)