Skip to content

Commit 0022f19

Browse files
test: account for allow_algebraic in tests
1 parent 38f2b0a commit 0022f19

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/nonlinearsystem.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ sys = structural_simplify(ns; conservative = true)
300300
ps ==> 10.0, ρ => 26.0, β => 8 / 3]
301301
@mtkbuild ns = NonlinearSystem(eqs)
302302

303-
@test isequal(calculate_jacobian(ns), [2x])
303+
@test isequal(calculate_jacobian(ns), [2x;;])
304304
# solve without analytical jacobian
305305
prob = NonlinearProblem(ns, guesses, ps)
306306
sol = solve(prob, NewtonRaphson())
@@ -374,7 +374,7 @@ end
374374
end
375375

376376
@variables y
377-
@mtkbuild sys = NonlinearSystem([0 ~ x * x - p * x + p, 0 ~ x * y + p])
377+
@mtkbuild sys=NonlinearSystem([0 ~ x * x - p * x + p, 0 ~ x * y + p]) allow_algebraic=false
378378
@test_throws ["single equation", "unknown"] IntervalNonlinearProblem(sys, (0.0, 1.0))
379379
@test_throws ["single equation", "unknown"] IntervalNonlinearFunction(sys, (0.0, 1.0))
380380
@test_throws ["single equation", "unknown"] IntervalNonlinearProblemExpr(

0 commit comments

Comments
 (0)