// fixme: we don't support this feature yet, so anything below is speculation about what it might // look like //use parameterized_macro::parameterized; // //// Vec or something else that implements IntoIter //fn f() -> Vec> { // vec![Some(1), Some(2)] //} // //fn g() -> Vec> { // vec![Err(())] //} // ///// Say we define a function with identifier `five`: ///// ``` ///// fn five() -> Vec { vec![5, 5, 5, 5] } ///// ``` ///// To write a parameterized test which uses this function to generate inputs, ///// we take the id of the function: `five` and use that in our test case: ///// ///// ``` ///// #[parameterized(fn = five)] ///// fn my_test_case(five: i8) { ///// assert!(five == 5) ///// } ///// ``` ///// The parameter of your defined test case function should be the Item value (T) of the ///// IntoIterator. ///// //#[parameterized(fn = {f, g})] //fn my_test(f: Option, g: Result) { // assert!(f.is_ok() && g.is_err()); //} // fn main() {}