Skip to content

Commit

Permalink
fix tests on 1.6
Browse files Browse the repository at this point in the history
  • Loading branch information
mcabbott committed Jul 13, 2022
1 parent d7d8e2c commit 193337c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/rulesets/Base/broadcast.jl
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,15 @@ using Base.Broadcast: broadcasted
end

@testset "split 2: derivatives" begin
test_rrule(copybroadcasted, log, rand(3))
test_rrule(copybroadcasted, log, Tuple(rand(3)))
test_rrule(copybroadcasted, log, rand(3) .+ 1)
test_rrule(copybroadcasted, log, Tuple(rand(3) .+ 1))

# Two args uses StructArrays
test_rrule(copybroadcasted, atan, rand(3), rand(3))
test_rrule(copybroadcasted, atan, rand(3), rand(4)')
test_rrule(copybroadcasted, atan, rand(3), rand())
test_rrule(copybroadcasted, atan, rand(3), Tuple(rand(1)))
test_rrule(copybroadcasted, atan, Tuple(rand(3)), Tuple(rand(3)))
test_rrule(copybroadcasted, atan, Tuple(rand(3)), Tuple(rand(3)), check_inferred = VERSION > v"1.7")

test_rrule(copybroadcasted, *, rand(3), Ref(rand()))
end
Expand Down

0 comments on commit 193337c

Please sign in to comment.