// Copyright 2014 The Rust Project Developers. // // 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 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) => ( match ::regex::Regex::new($re) { Ok(re) => re, Err(err) => panic!("{}", err), } ); ); type Regex = ::regex::Regex; mod bench;