Skip to content

Commit 73d06ca

Browse files
committed
Test nested broadcast
1 parent b0e12f9 commit 73d06ca

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

test/structuredbroadcast.jl

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -388,4 +388,10 @@ end
388388
@test ind == CartesianIndex(1,1)
389389
end
390390

391+
@testset "nested triangular broadcast" begin
392+
L = LowerTriangular(rand(Int,4,4))
393+
M = Matrix(L)
394+
@test L .+ L .+ 0 .+ L .+ 0 .- L == 2M
395+
end
396+
391397
end

0 commit comments

Comments
 (0)