Skip to content

Commit 263f1b8

Browse files
test: update test to account for new initialization system generation
1 parent 30855c9 commit 263f1b8

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

test/structural_transformation/utils.jl

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,10 @@ end
5959
@test_nowarn prob.f(prob.u0, prob.p, 0.0)
6060

6161
isys = ModelingToolkit.generate_initializesystem(sys)
62-
@test length(unknowns(isys)) == 5
63-
@test length(equations(isys)) == 4
64-
@test !any(equations(isys)) do eq
62+
@test length(unknowns(isys)) == 1
63+
@test length(equations(isys)) == 0
64+
@test length(observed(isys)) == 4
65+
@test !any([equations(isys); observed(isys)]) do eq
6566
iscall(eq.rhs) && operation(eq.rhs) in [StructuralTransformations.change_origin]
6667
end
6768
end

0 commit comments

Comments
 (0)