Skip to content

Commit 8e1f012

Browse files
committed
Add test
1 parent cf246ba commit 8e1f012

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

test/odesystem.jl

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -867,3 +867,13 @@ let
867867
prob = ODAEProblem(sys4s, [x => 1.0, D(x) => 1.0], (0, 1.0))
868868
@test string.(prob.f.syms) == ["x(t)", "xˍt(t)"]
869869
end
870+
871+
let
872+
@variables t
873+
@parameters P(t) Q(t)
874+
∂t = Differential(t)
875+
876+
eqs = [∂t(Q) ~ 0.2P
877+
∂t(P) ~ -80.0sin(Q)]
878+
@test_throws ArgumentError @named sys = ODESystem(eqs)
879+
end

0 commit comments

Comments
 (0)