aboutsummaryrefslogtreecommitdiff
path: root/tests/word_boundary_unicode.rs
blob: c41355ffc4b88c63721cc9a4a442fc7d7c853a9b (plain)
1
2
3
4
5
6
// Unicode word boundaries know about Unicode characters.
// For ASCII word boundaries, the tests are precisely inverted.
matiter!(unicode1, r"\bx\b", "áxβ");
matiter!(unicode2, r"\Bx\B", "áxβ", (2, 3));

matiter!(ascii1, r"(?-u:\b)x(?-u:\b)", "áxβ", (2, 3));