From f6123eefe02d3ad6e7d2f0e8095c6424b1dfcb2f Mon Sep 17 00:00:00 2001 From: Miha Zgubic Date: Mon, 12 Sep 2022 08:51:56 +0200 Subject: [PATCH] fix CI on 1.5 (#585) --- test/projection.jl | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/test/projection.jl b/test/projection.jl index d6a8633bb..d364631fc 100644 --- a/test/projection.jl +++ b/test/projection.jl @@ -149,9 +149,11 @@ struct NoSuperType end @testset "Base: Tuple" begin pt1 = ProjectTo((1.0,)) - @test @inferred(pt1((1 + im,))) == Tangent{Tuple{Float64}}(1.0,) - @test @inferred(pt1(pt1((1,)))) == pt1(pt1((1,))) # accepts correct Tangent - @test @inferred(pt1(Tangent{Any}(1))) == pt1((1,)) # accepts Tangent{Any} + if VERSION >= v"1.6" + @test @inferred(pt1((1 + im,))) == Tangent{Tuple{Float64}}(1.0) + @test @inferred(pt1(pt1((1,)))) == pt1(pt1((1,))) # accepts correct Tangent + @test @inferred(pt1(Tangent{Any}(1))) == pt1((1,)) # accepts Tangent{Any} + end @test pt1([1,]) == Tangent{Tuple{Float64}}(1.0,) # accepts Vector @test @inferred(pt1(NoTangent())) === NoTangent() @test @inferred(pt1(ZeroTangent())) === ZeroTangent()