Skip to content

Commit bbce298

Browse files
test: check Differential(x) in docstring
1 parent 3caeae1 commit bbce298

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

test/initializationsystem.jl

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -362,6 +362,11 @@ tspan = (0.0, 100.0)
362362
@test_throws ModelingToolkit.IncompleteInitializationError prob=ODEProblem(
363363
sys, [u0; p], tspan, jac = true)
364364

365+
u0 = [y => 0.0,
366+
z => 0.0]
367+
@test_throws "Differential(t)(x(t))" prob=ODEProblem(
368+
sys, [u0; p], tspan, jac = true)
369+
365370
# DAE Initialization on ODE with nonlinear system for initial conditions
366371
# https://github.com/SciML/ModelingToolkit.jl/issues/2508
367372

0 commit comments

Comments
 (0)