Skip to content

Commit

Permalink
Add test cases for #29266
Browse files Browse the repository at this point in the history
  • Loading branch information
dourouc05 committed Feb 17, 2019
1 parent af815f3 commit fe4e503
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions test/broadcast.jl
Original file line number Diff line number Diff line change
Expand Up @@ -684,6 +684,15 @@ let n = 1
@test ceil.(Int, 1 ./ (1,)) == (1,)
end

# Issue #29266
@testset "deprecated scalar-fill .=" begin
a = fill(1, 10)
@test_throws ArgumentError a[1:5] = 0

x = randn(10)
@test_throws ArgumentError x[x .> 0.0] = 0.0
end


# lots of splatting!
let x = [[1, 4], [2, 5], [3, 6]]
Expand Down

0 comments on commit fe4e503

Please sign in to comment.