From 7e34b70fbb4d254ba666f3195ee79f8afc94c6ce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20M=C3=BCller-Widmann?= Date: Wed, 11 Nov 2026 00:07:01 +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/utils.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/utils.jl b/test/utils.jl index 9bd8b052..3ed3791b 100644 --- a/test/utils.jl +++ b/test/utils.jl @@ -34,7 +34,7 @@ tracked_is(a::Tuple, b::Tuple) = all(map(tracked_is, a, b)) function modify_input(f, x) return if in(f, (:asec, :acsc, :asecd, :acscd, :acosh, :acoth)) x .+ one(eltype(x)) - elseif f === :log1mexp || f === :log2mexp + elseif f in (:log1mexp, :log2mexp, :logitexp, :logit1mexp) x .- one(eltype(x)) else x