Skip to content

Commit 08b1260

Browse files
refactor: update tests to account for new initsys generation
1 parent 8ff648d commit 08b1260

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/initializationsystem.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -461,8 +461,8 @@ prob = ODEProblem(simpsys, [z => 1.0, y => 1.0], tspan, guesses = [x => 2.0])
461461
sol = solve(prob, Tsit5())
462462
@test sol[[x, y], 1] == [0.0, 1.0]
463463

464-
# This should warn, but logging tests can't be marked as broken
465-
@test_logs prob = ODEProblem(simpsys, [], tspan, guesses = [x => 2.0])
464+
# @test_throws ModelingToolkit.IncompleteInitializationError ODEProblem(
465+
# simpsys, [], tspan, guesses = [x => 2.0])
466466

467467
# Late Binding initialization_eqs
468468
# https://github.com/SciML/ModelingToolkit.jl/issues/2787
@@ -923,8 +923,8 @@ end
923923
[D(x) ~ 2x + r + rhss, r ~ p + 2q, q ~ p + 3], t;
924924
guesses = [p => 1.0])
925925
prob = Problem(sys, [x => 1.0, p => missing], (0.0, 1.0))
926-
@test length(equations(ModelingToolkit.get_parent(prob.f.initialization_data.initializeprob.f.sys))) ==
927-
4
926+
parent_isys = ModelingToolkit.get_parent(prob.f.initialization_data.initializeprob.f.sys)
927+
@test length(equations(parent_isys)) == 4
928928
integ = init(prob, alg)
929929
@test integ.ps[p] 2
930930
end

0 commit comments

Comments
 (0)