Skip to content

Commit

Permalink
Add test for unstable broadcast
Browse files Browse the repository at this point in the history
  • Loading branch information
N5N3 committed Feb 20, 2022
1 parent 9b9d8b2 commit 5c17619
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -938,6 +938,7 @@ Base.similar(bc::Broadcast.Broadcasted{Broadcast.ArrayStyle{MyArray}}, ::Type{El
a = StructArray([1;2+im])
b = StructArray([1;;2+im])
@test a .+ b == a .+ collect(b) == collect(a) .+ b == collect(a) .+ collect(b)
@test a .+ Any[1] isa StructArray

# issue #185
A = StructArray(randn(ComplexF64, 3, 3))
Expand Down

0 comments on commit 5c17619

Please sign in to comment.