From 2f6b64799052cab6e0260ca9c6d55542f6839c49 Mon Sep 17 00:00:00 2001 From: Jishnu Bhattacharya Date: Fri, 5 Apr 2024 11:11:09 +0530 Subject: [PATCH] Add ndims test --- stdlib/LinearAlgebra/test/structuredbroadcast.jl | 1 + 1 file changed, 1 insertion(+) diff --git a/stdlib/LinearAlgebra/test/structuredbroadcast.jl b/stdlib/LinearAlgebra/test/structuredbroadcast.jl index 395d62c2165f0..384ed5b3b60cf 100644 --- a/stdlib/LinearAlgebra/test/structuredbroadcast.jl +++ b/stdlib/LinearAlgebra/test/structuredbroadcast.jl @@ -322,6 +322,7 @@ end @test eltype(eltype(Df)) <: AbstractFloat @test (x -> (x,)).(D) == (x -> (x,)).(M) @test (x -> 1).(D) == ones(Int,size(D)) + @test all(==(2), ndims.(D)) @test_throws MethodError size.(D) end @testset "Diagonal" begin