Skip to content
This repository was archived by the owner on May 15, 2025. It is now read-only.

Commit c00b3b3

Browse files
Update basictests.jl
1 parent b9aff11 commit c00b3b3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/basictests.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ for alg in (SimpleNewtonRaphson(), Broyden(), LBroyden(), Klement(), SimpleTrust
166166
g = function (p)
167167
probN = NonlinearProblem{false}(f, 0.5, p)
168168
sol = solve(probN, alg)
169-
return [sol.u]
169+
return [abs(sol.u)]
170170
end
171171
@test g(p) [sqrt(p[2] / p[1])]
172172
@test ForwardDiff.jacobian(g, p) ForwardDiff.jacobian(t, p)

0 commit comments

Comments
 (0)