use mocktave::{wrap, OctaveType}; fn main() { let norm = wrap("norm".into()); let x = [ OctaveType::Matrix(vec![vec![0.0; 2]; 2]), OctaveType::Scalar(2.0_f64), ]; let should_be_zero: f64 = norm(x); assert_eq!(should_be_zero, 0.0_f64); }