diff --git a/tests/array.rs b/tests/array.rs index be4254b30..82da47bef 100644 --- a/tests/array.rs +++ b/tests/array.rs @@ -1065,6 +1065,14 @@ fn test_default() { assert_eq!(b, arr0(Foo::default())); } +#[test] +fn test_default_ixdyn() { + let a = as Default>::default(); + let b = Array::::zeros(IxDyn(&[0])); + assert_eq!(a, b); +} + + #[test] fn test_map_axis() { let a = arr2(&[[1, 2, 3],