Skip to content

Commit cf5b7a9

Browse files
committed
Add test
1 parent 25f93f6 commit cf5b7a9

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/dense.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ function Base.show(io::IO, backend::AutoFiniteDiff)
140140
print(io, "relstep=", repr(backend.relstep; context = io), ", ")
141141
!isnothing(backend.absstep) &&
142142
print(io, "absstep=", repr(backend.absstep; context = io), ", ")
143-
(isnothing(backend.dir) || !backend.dir) &&
143+
backend.dir != true &&
144144
print(io, "dir=", repr(backend.dir; context = io))
145145
print(io, ")")
146146
end

test/runtests.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,8 @@ function every_ad_with_options()
6363
AutoEnzyme(mode = :forward),
6464
AutoFastDifferentiation(),
6565
AutoFiniteDiff(),
66-
AutoFiniteDiff(fdtype = :fd, fdjtype = :fdj, fdhtype = :fdh),
66+
AutoFiniteDiff(fdtype = :fd, fdjtype = :fdj, fdhtype = :fdh,
67+
relstep = 1, absstep = 2, dir = false),
6768
AutoFiniteDifferences(; fdm = :fdm),
6869
AutoForwardDiff(),
6970
AutoForwardDiff(chunksize = 3, tag = :tag),

0 commit comments

Comments
 (0)