| 1 |
mod fuzz; |
| 2 |
mod string; |
| 3 |
|
| 4 |
const BLACKLIST: &[&str] = &[ |
| 5 |
// Custom line terminators aren't supported in regex-lite. We could add it, |
| 6 |
// but it didn't seem worth it. |
| 7 |
"line-terminator", |
| 8 |
]; |
| 9 |
|
| 10 |
fn suite() -> anyhow::Result<regex_test::RegexTests> { |
| 11 |
let mut tests = regex_test::RegexTests::new(); |
| 12 |
macro_rules! load { |
| 13 |
($name:expr) => {{ |
| 14 |
const DATA: &[u8] = |
| 15 |
include_bytes!(concat!("../../testdata/", $name, ".toml")); |
| 16 |
tests.load_slice($name, DATA)?; |
| 17 |
}}; |
| 18 |
} |
| 19 |
|
| 20 |
load!("anchored"); |
| 21 |
load!("bytes"); |
| 22 |
load!("crazy"); |
| 23 |
load!("crlf"); |
| 24 |
load!("earliest"); |
| 25 |
load!("empty"); |
| 26 |
load!("expensive"); |
| 27 |
load!("flags"); |
| 28 |
load!("iter"); |
| 29 |
load!("leftmost-all"); |
| 30 |
load!("line-terminator"); |
| 31 |
load!("misc"); |
| 32 |
load!("multiline"); |
| 33 |
load!("no-unicode"); |
| 34 |
load!("overlapping"); |
| 35 |
load!("regression"); |
| 36 |
load!("set"); |
| 37 |
load!("substring"); |
| 38 |
load!("unicode"); |
| 39 |
load!("utf8"); |
| 40 |
load!("word-boundary"); |
| 41 |
load!("word-boundary-special"); |
| 42 |
load!("fowler/basic"); |
| 43 |
load!("fowler/nullsubexpr"); |
| 44 |
load!("fowler/repetition"); |
| 45 |
|
| 46 |
// Special tests for regex-lite specifically. |
| 47 |
load!("regex-lite"); |
| 48 |
|
| 49 |
Ok(tests) |
| 50 |
} |