From 2e2c6bf60aad75a512221811b0c96b169975be3f Mon Sep 17 00:00:00 2001 From: Shan Sikdar Date: Thu, 12 Mar 2020 20:48:33 -0400 Subject: [PATCH] add test for .<: --- test/parse.jl | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/parse.jl b/test/parse.jl index 93946b603ba01..20577b48413ca 100644 --- a/test/parse.jl +++ b/test/parse.jl @@ -315,3 +315,5 @@ end @test Meta.parse("±x") == Expr(:call, :±, :x) @test Meta.parse("∓x") == Expr(:call, :∓, :x) end + +@test [Int, Float64, String, Bool] .<: Union{Int, String} == Bool[1, 0, 1, 0]