/// Provides: /// /// - `fn vectors()`: allows for getting a `Vec` of all vectors for exporting. /// - `mod tests`: runs all the test vectors locally. macro_rules! vectors_and_tests { ($($name: ident, $test: expr),*) => { pub fn vectors() -> Vec { let mut vec = vec![]; $( vec.push($test.test_vector(stringify!($name).into())); )* vec } #[cfg(test)] mod tests { use super::*; $( #[test] fn $name() { $test.run(); } )* } }; }