Skip to content

Commit 84720fc

Browse files
committed
use == to compare to Union{Bool,Int} in broadcast test
otherwise we can run into `Union{Bool,Int} !== Union{Int,Bool}`
1 parent c492a7d commit 84720fc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/broadcast.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,7 @@ end
346346
let f17314 = x -> x < 0 ? false : x
347347
@test eltype(broadcast(f17314, 1:3)) === Int
348348
@test eltype(broadcast(f17314, -1:1)) === Integer
349-
@test eltype(broadcast(f17314, Int[])) === Union{Bool,Int}
349+
@test eltype(broadcast(f17314, Int[])) == Union{Bool,Int}
350350
end
351351
let io = IOBuffer()
352352
broadcast(x->print(io,x), 1:5) # broadcast with side effects

0 commit comments

Comments
 (0)