fune/third_party/rust/regex/tests/misc.rs
Chris H-C 072d3a741d Bug 1596132 - mach vendor rust for glean-preview r=janerik,froydnj
Differential Revision: https://phabricator.services.mozilla.com/D54616

--HG--
rename : third_party/rust/itoa/LICENSE-MIT => third_party/rust/ffi-support/LICENSE-MIT
rename : third_party/rust/regex/src/literal/mod.rs => third_party/rust/regex/src/literal/imp.rs
rename : third_party/rust/ryu/benchmark/benchmark.rs => third_party/rust/ryu/examples/upstream_benchmark.rs
rename : third_party/rust/ryu/src/mulshift128.rs => third_party/rust/ryu/src/d2s_intrinsics.rs
extra : moz-landing-system : lando
2019-12-09 15:01:10 +00:00

4 lines
206 B
Rust

mat!(prefix_literal_match, r"^abc", r"abc", Some((0, 3)));
mat!(prefix_literal_nomatch, r"^abc", r"zabc", None);
mat!(one_literal_edge, r"abc", r"xxxxxab", None);
matiter!(terminates, r"a$", r"a", (0, 1));