From 789f19331282d56cc1f1ccf23f6e8077d27f125b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20M=C3=BCller-Widmann?= Date: Wed, 11 Nov 2026 00:06:57 +0100 Subject: [PATCH] Shift test arguments of `logitexp` and `logit1mexp` to their domain `LogExpFunctions.logitexp` and `logit1mexp` are only defined for `x < 0`. JuliaDiff/DiffRules.jl#121 adds rules for them, so the tests that loop over all DiffRules rules evaluate them at `rand()` and throw a `DomainError`. Treat them like `log1mexp` and `log2mexp`. Co-Authored-By: Claude Opus 5.5 --- test/DualTest.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/DualTest.jl b/test/DualTest.jl index e7429be5..094e009b 100644 --- a/test/DualTest.jl +++ b/test/DualTest.jl @@ -547,7 +547,7 @@ ForwardDiff.:≺(::Type{OuterTestTag}, ::Type{TestTag}) = false deriv = DiffRules.diffrule(M, f, :x) modifier = if in(f, (:asec, :acsc, :asecd, :acscd, :acosh, :acoth)) one(V) - elseif in(f, (:log1mexp, :log2mexp)) + elseif in(f, (:log1mexp, :log2mexp, :logitexp, :logit1mexp)) -one(V) else zero(V)