Skip to content

Commit

Permalink
Add ndims test
Browse files Browse the repository at this point in the history
  • Loading branch information
jishnub committed May 17, 2024
1 parent e65d38f commit 2f6b647
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions stdlib/LinearAlgebra/test/structuredbroadcast.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2f6b647

Please sign in to comment.