Skip to content

Commit e75d8eb

Browse files
Michael Abbottmcabbott
authored andcommitted
add test for issue 407
1 parent 2c0fa4c commit e75d8eb

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test/GradientTest.jl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,10 @@ end
182182
∇A = [6 0 0; 0 3 -pi; 0 0 2]
183183
@test ForwardDiff.gradient(det2, A) ∇A
184184
@test ForwardDiff.gradient(det, A) ∇A
185+
186+
# And issue 407
187+
@test ForwardDiff.hessian(det, A) ForwardDiff.hessian(det2, A)
188+
185189
end
186190

187191
end # module

0 commit comments

Comments
 (0)