use rstest::rstest; use arr_rs::prelude::*; #[rstest( arr, expected, case(array_full!(i32, vec![8], 2), array![i32, 2, 2, 2, 2, 2, 2, 2, 2]), case(array_full!(i32, vec![3, 3], 2), array!(i32, [[2, 2, 2], [2, 2, 2], [2, 2, 2]])), case(array_full!(i32, vec![2, 2, 2], 2), array!(i32, [[[2, 2], [2, 2]], [[2, 2], [2, 2]]])), )] fn test_full_array_macro(arr: Result, ArrayError>, expected: Result, ArrayError>) { assert_eq!(expected, arr); }