blob: 5f92ed046c4f38c78d26a570ce9d38fa4bdfd575 [file] [log] [blame]
Haibo Huang1d704cd2020-11-02 18:46:32 -08001// These tests are only run for the "default" test target because some of them
2// can take quite a long time. Some of them take long enough that it's not
3// practical to run them in debug mode. :-/
4
5// See: https://oss-fuzz.com/testcase-detail/5673225499181056
6//
7// Ignored by default since it takes too long in debug mode (almost a minute).
8#[test]
9#[ignore]
10fn fuzz1() {
11 regex!(r"1}{55}{0}*{1}{55}{55}{5}*{1}{55}+{56}|;**");
12}
13
14// See: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=26505
15// See: https://github.com/rust-lang/regex/issues/722
16#[test]
17fn empty_any_errors_no_panic() {
18 assert!(regex_new!(r"\P{any}").is_err());
19}