Skip to content

Commit

Permalink
use inline function instead of Base.Fix1
Browse files Browse the repository at this point in the history
  • Loading branch information
Expander committed Jun 16, 2024
1 parent d7b77a1 commit 0085079
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/Li.jl
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,8 @@ end

# ForwardDiff Test
if isdefined(Base, :get_extension)
@test ForwardDiff.derivative(Base.Fix1(PolyLog.reli, n), float(pi)) == PolyLog.reli(n - 1, pi)/pi
@test ForwardDiff.derivative(Base.Fix1(PolyLog.reli, n), 0.0) == 1.0
@test ForwardDiff.derivative(z -> PolyLog.reli(n, z), float(pi)) == PolyLog.reli(n - 1, pi)/pi
@test ForwardDiff.derivative(z -> PolyLog.reli(n, z), 0.0) == 1.0
ChainRulesTestUtils.test_frule(PolyLog.reli, n, 0.0)
ChainRulesTestUtils.test_rrule(PolyLog.reli, n, float(pi))
end
Expand Down

0 comments on commit 0085079

Please sign in to comment.