diff --git a/test/broadcast.jl b/test/broadcast.jl index e433992ca9e4c..bf7d4e563c1ae 100644 --- a/test/broadcast.jl +++ b/test/broadcast.jl @@ -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, α)