Skip to content

Commit 86fb4f2

Browse files
authored
Test number broadcast. (#455)
1 parent b2f396d commit 86fb4f2

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

test/testsuite/broadcasting.jl

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,13 @@ function broadcasting(AT, eltypes)
6262
end
6363
end
6464

65+
@testset "Number" begin
66+
A = AT(rand(ET, N))
67+
x = rand(ET)
68+
A .= x
69+
@test all(isequal(x), Array(A))
70+
end
71+
6572
@testset "Adjoint and Transpose" begin
6673
A = AT(rand(ET, N))
6774
A' .= ET(2)

0 commit comments

Comments
 (0)