Skip to content

Commit

Permalink
Remove version check
Browse files Browse the repository at this point in the history
  • Loading branch information
jgreener64 authored and wsmoses committed Dec 7, 2024
1 parent 603b459 commit d3dd701
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -790,14 +790,8 @@ end
return 2x
end
end
# Gives 0.0 on Julia 1.6, see #971
@static if VERSION v"1.8-"
@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
@test autodiff(Reverse, f25, Active, Active(2.0))[1][1] == 2
@test autodiff(Forward, f25, Duplicated(2.0, 1.0))[1] == 2

f26(x) = circshift([1.0, 2x, 3.0], 1)[end]
@test autodiff(Reverse, f26, Active, Active(2.0))[1][1] == 2
Expand Down

0 comments on commit d3dd701

Please sign in to comment.