Skip to content

Commit 4d219b9

Browse files
test: test SCC sorted order
1 parent baf87d6 commit 4d219b9

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test/scc_nonlinear_problem.jl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,10 @@ using ModelingToolkit: t_nounits as t, D_nounits as D
3939
@test prob.u0 isa SVector
4040
@test !SciMLBase.isinplace(prob)
4141
end
42+
43+
# not `issetequal`, this specifically tests that the system is already BLT sorted
44+
@test isequal(
45+
reduce(vcat, [unknowns(prob.f.sys) for prob in sccprob.probs]), unknowns(model))
4246
end
4347

4448
@testset "With parameters" begin

0 commit comments

Comments
 (0)