Skip to content

Commit 9858b68

Browse files
test: add test for solving NonlinearSystem with jac = true
1 parent d9782e5 commit 9858b68

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

test/nonlinearsystem.jl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,9 @@ prob = NonlinearProblem(ns, ones(3), [σ => 1.0, ρ => 1.0, β => 1.0])
8787
sol = solve(prob, NewtonRaphson())
8888
@test sol.u[1] sol.u[2]
8989

90+
prob = NonlinearProblem(ns, ones(3), [σ => 1.0, ρ => 1.0, β => 1.0], jac = true)
91+
@test_nowarn solve(prob, NewtonRaphson())
92+
9093
@test_throws ArgumentError NonlinearProblem(ns, ones(4), [σ => 1.0, ρ => 1.0, β => 1.0])
9194

9295
@variables u F s a

0 commit comments

Comments
 (0)