Skip to content

Commit 193337c

Browse files
committed
fix tests on 1.6
1 parent d7d8e2c commit 193337c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/rulesets/Base/broadcast.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,15 @@ using Base.Broadcast: broadcasted
1313
end
1414

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

1919
# Two args uses StructArrays
2020
test_rrule(copybroadcasted, atan, rand(3), rand(3))
2121
test_rrule(copybroadcasted, atan, rand(3), rand(4)')
2222
test_rrule(copybroadcasted, atan, rand(3), rand())
2323
test_rrule(copybroadcasted, atan, rand(3), Tuple(rand(1)))
24-
test_rrule(copybroadcasted, atan, Tuple(rand(3)), Tuple(rand(3)))
24+
test_rrule(copybroadcasted, atan, Tuple(rand(3)), Tuple(rand(3)), check_inferred = VERSION > v"1.7")
2525

2626
test_rrule(copybroadcasted, *, rand(3), Ref(rand()))
2727
end

0 commit comments

Comments
 (0)