From 5c1761950380ecb5d92377b71fd022ba3b5d21cd Mon Sep 17 00:00:00 2001 From: N5N3 <2642243996@qq.com> Date: Sun, 20 Feb 2022 22:07:49 +0800 Subject: [PATCH] Add test for unstable broadcast --- test/runtests.jl | 1 + 1 file changed, 1 insertion(+) diff --git a/test/runtests.jl b/test/runtests.jl index 20412dc5..af86c7d6 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -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))