Skip to content

Commit 7b5dd0f

Browse files
committed
Added test.
1 parent 9cc76fb commit 7b5dd0f

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
@@ -318,6 +318,16 @@ ode = ODESystem(eq)
318318

319319
end
320320

321+
#Issue 998
322+
@parameters t
323+
pars = []
324+
vars = @variables((u1,))
325+
der = Differential(t)
326+
eqs = [
327+
der(u1) ~ 1,
328+
]
329+
@test_throws ArgumentError ODESystem(eqs,t,vars,pars)
330+
321331
@variables x(t)
322332
D = Differential(t)
323333
@parameters M b k

0 commit comments

Comments
 (0)