Skip to content

Commit 68877c2

Browse files
jClugstorChrisRackauckas
authored andcommitted
fix test
1 parent 94c2e43 commit 68877c2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/BracketingNonlinearSolve/test/adjoint_tests.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
p = [2.0, 2.0]
1414

15-
∂p_zygote = Zygote.gradient(solve_nlprob, p)
15+
∂p_zygote = only(Zygote.gradient(solve_nlprob, p))
1616
∂p_forwarddiff = ForwardDiff.gradient(solve_nlprob, p)
1717
@test ∂p_zygote ∂p_forwarddiff
1818
end

0 commit comments

Comments
 (0)