Skip to content
Snippets Groups Projects
Commit be6401a2 authored by Raphaël Gomès's avatar Raphaël Gomès
Browse files

rust-regex: add test for verbatim regex syntax

This makes sure it's not modified.

Differential Revision: https://phab.mercurial-scm.org/D8508
parent 1e9bfeae
No related branches found
No related tags found
No related merge requests found
......@@ -625,6 +625,15 @@
.unwrap(),
Some(br"(?:.*/)?rust/target(?:/|$)".to_vec()),
);
assert_eq!(
build_single_regex(&IgnorePattern::new(
PatternSyntax::Regexp,
br"rust/target/\d+",
Path::new("")
))
.unwrap(),
Some(br"rust/target/\d+".to_vec()),
);
}
#[test]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment