Skip to content

Commit ed06bde

Browse files
kshyattdlfivefifty
authored andcommitted
Two small tests for Zeros bcast (#75)
1 parent 83c8385 commit ed06bde

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/runtests.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -493,6 +493,8 @@ end
493493

494494
rnge = range(-5.0, step=1.0, length=10)
495495
@test broadcast(*, Fill(5.0, 10), rnge) == broadcast(*, 5.0, rnge)
496+
@test broadcast(*, Zeros(10, 10), rnge) == zeros(10, 10)
497+
@test broadcast(*, rnge, Zeros(10, 10)) == zeros(10, 10)
496498
@test_throws DimensionMismatch broadcast(*, Fill(5.0, 11), rnge)
497499
@test broadcast(*, rnge, Fill(5.0, 10)) == broadcast(*, rnge, 5.0)
498500
@test_throws DimensionMismatch broadcast(*, rnge, Fill(5.0, 11))

0 commit comments

Comments
 (0)