#[macro_use] mod common; use generic_parameterize::parameterize; use std::fmt::Debug; use std::ops; use vector_victor::Matrix; #[parameterize(S = (i32, f32, f64, u32), M = [1,4], N = [1,4])] #[test] fn test_add + PartialEq + Debug, const M: usize, const N: usize>() where Matrix: ops::Add>, { let a = Matrix::::fill(S::from(1)); let b = Matrix::::fill(S::from(3)); let c: Matrix = a + b; for (_, ci) in c.elements().enumerate() { assert_eq!(*ci, S::from(4)); } }