1#![cfg_attr(feature = "nightly", feature(test))]
4
5#[cfg(test)]
6extern crate testdrop;
7
8#[cfg(all(test, feature = "nightly"))]
9extern crate rand;
10#[cfg(feature = "nightly")]
11extern crate test;
12
13extern crate fera_fun;
14
15#[cfg(test)]
16macro_rules! delegate_tests {
17 ($T: ident, $($names: ident),+) => (
18 $(
19 #[test]
20 fn $names() {
21 $T::$names();
22 }
23 )*
24 )
25}
26
27#[cfg(feature = "nightly")]
28macro_rules! delegate_benchs {
29 ($T: ident, $($names: ident),+) => (
30 $(
31 #[bench]
32 fn $names(b: &mut Bencher) {
33 $T::$names(b);
34 }
35 )*
36 )
37}
38
39macro_rules! inline_mod {
40 ($($name:ident),+,) => (
41 $(
42 mod $name;
43 pub use $name::*;
44 )*
45 )
46}
47
48inline_mod! {
49 array,
50 cow,
51 nested,
52 prefixed,
53 rc,
54 vec,
55}