From 193337c79b7c7b7457e79305bca6f97335d57bdc Mon Sep 17 00:00:00 2001 From: Michael Abbott <32575566+mcabbott@users.noreply.github.com> Date: Tue, 12 Jul 2022 21:49:18 -0400 Subject: [PATCH] fix tests on 1.6 --- test/rulesets/Base/broadcast.jl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/rulesets/Base/broadcast.jl b/test/rulesets/Base/broadcast.jl index d9e13fe7e..2fc589ea7 100644 --- a/test/rulesets/Base/broadcast.jl +++ b/test/rulesets/Base/broadcast.jl @@ -13,15 +13,15 @@ using Base.Broadcast: broadcasted end @testset "split 2: derivatives" begin - test_rrule(copy∘broadcasted, log, rand(3)) - test_rrule(copy∘broadcasted, log, Tuple(rand(3))) + test_rrule(copy∘broadcasted, log, rand(3) .+ 1) + test_rrule(copy∘broadcasted, log, Tuple(rand(3) .+ 1)) # Two args uses StructArrays test_rrule(copy∘broadcasted, atan, rand(3), rand(3)) test_rrule(copy∘broadcasted, atan, rand(3), rand(4)') test_rrule(copy∘broadcasted, atan, rand(3), rand()) test_rrule(copy∘broadcasted, atan, rand(3), Tuple(rand(1))) - test_rrule(copy∘broadcasted, atan, Tuple(rand(3)), Tuple(rand(3))) + test_rrule(copy∘broadcasted, atan, Tuple(rand(3)), Tuple(rand(3)), check_inferred = VERSION > v"1.7") test_rrule(copy∘broadcasted, *, rand(3), Ref(rand())) end