From f279ed6c3f3acbfca0f4f213b5fe1bcd8cb48425 Mon Sep 17 00:00:00 2001 From: Jeff Bezanson Date: Wed, 5 Jul 2017 10:18:51 -0600 Subject: [PATCH] use `==` to compare to `Union{Bool,Int}` in broadcast test otherwise we can run into `Union{Bool,Int} !== Union{Int,Bool}` --- test/broadcast.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/broadcast.jl b/test/broadcast.jl index 00134b3df0ec5..6eafb648bf2c3 100644 --- a/test/broadcast.jl +++ b/test/broadcast.jl @@ -346,7 +346,7 @@ end let f17314 = x -> x < 0 ? false : x @test eltype(broadcast(f17314, 1:3)) === Int @test eltype(broadcast(f17314, -1:1)) === Integer - @test eltype(broadcast(f17314, Int[])) === Union{Bool,Int} + @test eltype(broadcast(f17314, Int[])) == Union{Bool,Int} end let io = IOBuffer() broadcast(x->print(io,x), 1:5) # broadcast with side effects