Skip to content

Commit d4079a8

Browse files
refactor: update tests to account for new initsys generation
1 parent 7ec630d commit d4079a8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/initializationsystem.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -922,8 +922,8 @@ end
922922
[D(x) ~ 2x + r + rhss, r ~ p + 2q, q ~ p + 3], t;
923923
guesses = [p => 1.0])
924924
prob = Problem(sys, [x => 1.0, p => missing], (0.0, 1.0))
925-
@test length(equations(ModelingToolkit.get_parent(prob.f.initialization_data.initializeprob.f.sys))) ==
926-
4
925+
parent_isys = ModelingToolkit.get_parent(prob.f.initialization_data.initializeprob.f.sys)
926+
@test length(equations(parent_isys)) == 4
927927
integ = init(prob, alg)
928928
@test integ.ps[p] 2
929929
end

0 commit comments

Comments
 (0)