mirror of
https://gitee.com/openharmony/third_party_rust_regex
synced 2025-04-12 07:34:07 +00:00
regex-syntax: update to Unicode 10.0
This commit is contained in:
parent
32eb9643b4
commit
a852378de0
@ -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
Loading…
x
Reference in New Issue
Block a user