Skip to content

Commit 61b2207

Browse files
committed
Add test
1 parent 06e6b0e commit 61b2207

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

test/odesystem.jl

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -657,3 +657,18 @@ let
657657
@parameters N
658658
@test_throws Any @named tmp = ODESystem([s + I + r ~ N])
659659
end
660+
661+
let
662+
@parameters C L R
663+
@variables t q(t) p(t) F(t)
664+
D = Differential(t)
665+
666+
eqs = [
667+
D(q) ~ -p/L - F
668+
D(p) ~ q/C
669+
0 ~ q/C - R*F
670+
]
671+
672+
@named sys = ODESystem(eqs, t)
673+
@test length(equations(structural_simplify(sys))) == 2
674+
end

0 commit comments

Comments
 (0)