Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 2 additions & 5 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,8 @@ non_diffeable_arg_functions = [(:Base, :rem2pi, 2), (:Base, :ldexp, 2), (:Base,
# We're happy with types with the correct promotion behavior, e.g.
# it's fine to return `1` as a derivative despite input being `Float64`.
@test promote_type(typeof($deriv), $T) === $T
if $(f in (:log1pmx, :logmxp1)) && $T == Float32
# These two functions currently don't have fallbacks for `Real`
# arguments, nor optimized implementations for `Float32`
@test_throws MethodError finitediff($M.$f, goo)
else
# In older versions of LogExpFunctions `log1pmx(::Float32)` and `logmxp1(::Float32)` are not defined
if hasmethod($M.$f, Tuple{$T})
@test $deriv ≈ finitediff($M.$f, goo) rtol=1e-2 atol=1e-3
end
# test for 2pi functions
Expand Down