]> git.lizzy.rs Git - rust.git/blob - src/libregex/test/mod.rs
doc: remove incomplete sentence
[rust.git] / src / libregex / test / mod.rs
1 // Copyright 2014 The Rust Project Developers. See the COPYRIGHT
2 // file at the top-level directory of this distribution and at
3 // http://rust-lang.org/COPYRIGHT.
4 //
5 // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
6 // http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
7 // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
8 // option. This file may not be copied, modified, or distributed
9 // except according to those terms.
10
11 #[cfg(not(stage1))]
12 #[phase(plugin)]
13 extern crate regex_macros;
14
15 #[cfg(not(stage1))]
16 #[path = "bench.rs"]
17 mod native_bench;
18
19 #[cfg(not(stage1))]
20 #[path = "tests.rs"]
21 mod native_tests;
22
23 #[cfg(not(stage1))]
24 mod native_static;
25
26 // Due to macro scoping rules, this definition only applies for the modules
27 // defined below. Effectively, it allows us to use the same tests for both
28 // native and dynamic regexes.
29 macro_rules! regex {
30     ($re:expr) => (
31         match ::regex::Regex::new($re) {
32             Ok(re) => re,
33             Err(err) => panic!("{}", err),
34         }
35     );
36 }
37
38 #[path = "bench.rs"]
39 mod dynamic_bench;
40 #[path = "tests.rs"]
41 mod dynamic_tests;
42