Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Mark try test as broken on Julia 1.6
Browse files Browse the repository at this point in the history
jgreener64 committed Aug 9, 2023
1 parent c8917d1 commit ec68ce4
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions test/runtests.jl
Original file line number Diff line number Diff line change
@@ -398,8 +398,14 @@ end
return 2x
end
end
@test autodiff(Reverse, f25, Active, Active(2.0))[1][1] == 2
@test autodiff(Forward, f25, Duplicated(2.0, 1.0))[1] == 2
# Gives 0.0 on Julia 1.6, see #971
@static if VERSION v"1.7-"
@test autodiff(Reverse, f25, Active, Active(2.0))[1][1] == 2
@test autodiff(Forward, f25, Duplicated(2.0, 1.0))[1] == 2
else
@test_broken autodiff(Reverse, f25, Active, Active(2.0))[1][1] == 2
@test_broken autodiff(Forward, f25, Duplicated(2.0, 1.0))[1] == 2
end
println("Done 25")

f26(x) = circshift([1.0, 2x, 3.0], 1)[end]

0 comments on commit ec68ce4

Please sign in to comment.