Skip to content

Commit f1f5b89

Browse files
committed
Size not defined for broadcasted objects in version 1.1, so only test that in 1.3 and greater.
1 parent 5272ab8 commit f1f5b89

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

test/broadcast.jl

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -62,12 +62,14 @@
6262
fill!(D2, -999999); D2 = @avx C .+ At' *ˡ B;
6363
@test D1 D2
6464

65-
b = rand(T,K); x = rand(R,N);
66-
D1 .= C .+ A * (b .+ x');
67-
@avx @. D2 = C + A *ˡ (b + x');
68-
@test D1 D2
69-
D2 = @avx @. C + A *ˡ (b + x');
70-
@test D1 D2
65+
if VERSION > v"1.2"
66+
b = rand(T,K); x = rand(R,N);
67+
D1 .= C .+ A * (b .+ x');
68+
@avx @. D2 = C + A *ˡ (b + x');
69+
@test D1 D2
70+
D2 = @avx @. C + A *ˡ (b + x');
71+
@test D1 D2
72+
end
7173

7274
if T <: Union{Float32,Float64}
7375
D3 = cos.(B');

0 commit comments

Comments
 (0)