Skip to content

Commit

Permalink
tests from #40309
Browse files Browse the repository at this point in the history
  • Loading branch information
mcabbott committed Apr 30, 2021
1 parent 2bfe5ec commit 1019b3a
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions test/broadcast.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1045,6 +1045,8 @@ end
end
end

# issue 40309
@test Base.broadcasted_kwsyntax(+, [1], [2]) isa Broadcast.Broadcasted{<:Any, <:Any, typeof(+)}
@test Broadcast.BroadcastFunction(+)(2:3, 2:3) === 4:2:6
@testset "Issue #40309: still gives a range after #40320" begin
@test Base.broadcasted_kwsyntax(+, [1], [2]) isa Broadcast.Broadcasted{<:Any, <:Any, typeof(+)}
@test Broadcast.BroadcastFunction(+)(2:3, 2:3) == 4:2:6
@test Broadcast.BroadcastFunction(+)(2:3, 2:3) isa AbstractRange
end

0 comments on commit 1019b3a

Please sign in to comment.