1#![cfg_attr(feature = "pattern", feature(pattern))]
2
3mod fuzz;
4mod misc;
5mod regression;
6mod regression_fuzz;
7mod replace;
8#[cfg(feature = "pattern")]
9mod searcher;
10mod suite_bytes;
11mod suite_bytes_set;
12mod suite_string;
13mod suite_string_set;
14
15const BLACKLIST: &[&str] = &[
16 // Nothing to blacklist yet!
17];
18
19fn suite() -> anyhow::Result<regex_test::RegexTests> {
20 let _ = env_logger::try_init();
21
22 let mut tests = regex_test::RegexTests::new();
23 macro_rules! load {
24 ($name:expr) => {{
25 const DATA: &[u8] =
26 include_bytes!(concat!("../testdata/", $name, ".toml"));
27 tests.load_slice($name, DATA)?;
28 }};
29 }
30
31 load!("anchored");
32 load!("bytes");
33 load!("crazy");
34 load!("crlf");
35 load!("earliest");
36 load!("empty");
37 load!("expensive");
38 load!("flags");
39 load!("iter");
40 load!("leftmost-all");
41 load!("line-terminator");
42 load!("misc");
43 load!("multiline");
44 load!("no-unicode");
45 load!("overlapping");
46 load!("regression");
47 load!("set");
48 load!("substring");
49 load!("unicode");
50 load!("utf8");
51 load!("word-boundary");
52 load!("word-boundary-special");
53 load!("fowler/basic");
54 load!("fowler/nullsubexpr");
55 load!("fowler/repetition");
56
57 Ok(tests)
58}
59