We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 32eb964 commit a852378Copy full SHA for a852378
regex-syntax/src/lib.rs
@@ -2196,6 +2196,18 @@ mod tests {
2196
assert_eq!(cls.case_fold(), bclass(&[(b'@', b'@')]));
2197
}
2198
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
+
2211
#[test]
2212
fn roundtrip_class_hypen() {
2213
let expr = e("[-./]");
0 commit comments