// Copyright 2015 The Rust Project Developers. // Copyright 2015-2016 Joe Neeman. // // Licensed under the Apache License, Version 2.0 or the MIT license // , at your // option. This file may not be copied, modified, or distributed // except according to those terms. #![feature(test)] extern crate rand; extern crate regex; extern crate regex_dfa; extern crate test; // Due to macro scoping rules, this definition only applies for the modules // defined below. Effectively, it allows us to use the same tests for both // native and dynamic regexes. macro_rules! regex( ($re:expr) => ( ::regex_dfa::Regex::new($re).unwrap() ); ); type Regex = ::regex_dfa::Regex; mod bench;