use rstest::rstest; use arr_rs::prelude::*; #[rstest( arr, expected, case(array_arange!(i32, 0, 4), array!(i32, [0, 1, 2, 3, 4])), case(array_arange!(i32, 0, 4, 1), array!(i32, [0, 1, 2, 3, 4])), case(array_arange!(i32, 0, 7, 2), array!(i32, [0, 2, 4, 6])), )] fn test_arange_array_macro(arr: Result, ArrayError>, expected: Result, ArrayError>) { assert_eq!(expected, arr); }