From 00850796f4cb65d0ada71befa430cab6b391307a Mon Sep 17 00:00:00 2001 From: Alexander Voigt Date: Sun, 16 Jun 2024 16:39:45 +0200 Subject: [PATCH] use inline function instead of Base.Fix1 --- test/Li.jl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/Li.jl b/test/Li.jl index 1ef6554..25f5e99 100644 --- a/test/Li.jl +++ b/test/Li.jl @@ -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