Skip to content

Commit

Permalink
work around #17318
Browse files Browse the repository at this point in the history
  • Loading branch information
stevengj committed Jul 12, 2016
1 parent 4637b3c commit 8caf3fd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/broadcast.jl
Original file line number Diff line number Diff line change
Expand Up @@ -170,10 +170,10 @@ rt = Base.return_types(broadcast!, Tuple{Function, Array{Float64, 3}, Array{Floa
@test length(rt) == 1 && rt[1] == Array{Float64, 3}

# f.(args...) syntax (#15032)
let x = [1,3.2,4.7], y = [3.5, pi, 1e-4], α = 0.2342
let x = [1,3.2,4.7], y = [3.5, pi, 1e-4], α = 0.2342, n = 3
@test sin.(x) == broadcast(sin, x)
@test sin.(α) == broadcast(sin, α)
@test factorial.(3) == broadcast(factorial, 3)
@test factorial.(n) == broadcast(factorial, n)
@test atan2.(x, y) == broadcast(atan2, x, y)
@test atan2.(x, y') == broadcast(atan2, x, y')
@test atan2.(x, α) == broadcast(atan2, x, α)
Expand Down

0 comments on commit 8caf3fd

Please sign in to comment.